/* Reset & Global Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: 'Segoe UI', sans-serif;
    line-height: 1.6;
    background: #f4f4f4;
    color: #333;
}
a {
    text-decoration: none;
    color: #007bff;
}
ul {
    list-style: none;
}

/* Navbar */
.navbar {
    background: #2C3E50;
    color: #fff;
    display: flex;
    justify-content: space-between;
    padding: 1rem 4rem;
    align-items: center;
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
}
.logo {
    font-size: 1.5rem;
}
.nav-links {
    display: flex;
    gap: 2rem;
}
.nav-links a {
    color: #fff;
    transition: color 0.3s;
}
.nav-links a:hover {
    color: #00d1b2;
}

/* Hero Section */
.hero {
    background: #4A90E2;
    color: white;
    padding: 4rem 2rem;
    text-align: center;
    margin-bottom: 300px;
    margin-top: 80px;
}
.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.hero p {
    font-size: 1.3rem;
}
.btn {
    display: inline-block;
    margin-top: 1.5rem;
    background: white;
    color: #007bff;
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    font-weight: bold;
    transition: background 0.3s;
}
.btn:hover {
    background: orange;
}

/* Section Styles */
.section {
    padding: 4rem 2rem;
    max-width: 1000px;
    margin: 1rem auto;
}
.section h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.logo a {
    color: #fff;
    text-decoration: none;
}

/* Skills */
.skills-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    padding: 0;
    text-align: center;
}

/* Projects */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.project-card {
    background: white;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.project-card:hover{
    outline: 2px solid black;
}
.project-card h3 {
    margin-bottom: 0.5rem;
}

/* Contact */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 600px;
    margin: auto;
}
.contact-form input,
.contact-form textarea {
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* Blogs page styling */
.container {
  max-width: 1100px;
  margin: 2rem auto;
  padding: 0 1rem;
  height: 45rem;
}

header {
  background-color: #4A90E2;
  color: white;
  padding: 2rem 1rem;
  text-align: center;
}

.blog-posts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
}

.card:hover {
  transform: translateY(-5px);
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.card-content {
  padding: 1rem;
}

.card h3 {
  margin-top: 0;
  font-size: 1.2rem;
}

.card p {
  font-size: 0.95rem;
  line-height: 1.4;
}


/* Modal Styling */
.modal {
  display: none;
  position: fixed;
  z-index: 10;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.6);
}

.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 2rem;
  border-radius: 8px;
  max-width: 600px;
  position: relative;
}

.close {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  color: #aaa;
  cursor: pointer;
}

.close:hover {
  color: #000;
}

/* Optional button style */
button.read-more {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  margin-top: 1rem;
  border-radius: 4px;
  cursor: pointer;
}

button.read-more:hover {
  background-color: #0056b3;
}


/* Footer */
.footer {
    text-align: center;
    padding: 2rem;
    background: #2C3E50;
    color: white;
    width: 100%;
    height: 300px;
    display: flex;
    flex-direction: column;
}

.footer-links {
    display: flex;
    gap: 3rem;
    margin-left: 500px;
    margin-bottom: 50px;
}

.footer-links a {
    color: #fff;
}

.footer-links a:hover {
    color: orange;
    border-bottom: 2px solid red;
}

.footer-contact-details {
    display: flex;
    margin-left: 470px;
    gap: 1rem;
    margin-bottom: 50px;
}

.footer-contact-details a {
    color: orange;
}

.footer-contact-details a:hover {
    outline: 1px solid red;
    padding: 3px;
}

#about {
    padding: 30px;
    background-color: #f8f9fa;
    border-radius: 8px;
    max-width: 900px;
    margin: 40px auto;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.6;
}

#about h2 {
    color: #222;
    margin-bottom: 20px;
    margin-left: 0;
}

#about p {
    padding: 5px;
    margin-left: 0;
}

.profile-image {
    float: left;
    margin-right: 20px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #007BFF;
}

/* Menu toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    color: white;
    cursor: pointer;
}

.ojc-btn{
    padding: 2%;
    width: 15rem;
    margin-top: 3%;
    margin-bottom: 1%;
    border: none;
    background-color: #4A90E2;
    font-size: 1rem;
    color: white;
    border-radius: 10px;
}

.ojc-btn:hover{
    background-color: orange;
}

.ojc-btn a{
    color: white;
}

/* Social media links styles*/
.social-links {
  display: flex;
  gap: 30px;
  justify-content: center;
  margin: 10px 0;
}

.social-links a {
  color: orange;
  font-size: 20px;
  text-decoration: none;
  transition: color 0.3s ease;
 
}

.social-links a:hover {
  color: #0077b5; /* LinkedIn blue, feel free to customize */
}

/* styling scroll button */
#scrollBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: none; /* Invisible by default */
  background-color: #4A90E2; /* or your brand color */
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
  z-index: 1000;
  transition: opacity 0.3s ease;
}

#scrollBtn:hover {
  background-color: #2C3E50; /* Darker on hover */
}

.horizontal-line-break{
    border: 0.1rem solid #ccc;
    margin-bottom: 0.5rem;
}

/* Responsive Styles */
@media (max-width: 768px) {

    /* Navbar */
    .navbar {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem 2rem;
    }
    
    .menu-toggle {
        display: block;
    }

    .nav-links {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        display: none; /* Hidden by default */
    }

    .nav-links.show {
        display: flex; /* Show when toggled */
    }

    /* Hero section */
    .hero h2 {
        font-size: 1.8rem;
    }
    .hero p {
        font-size: 1rem;
    }

    /* Skills */
    .skills-list {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    /* Projects */
    .project-grid {
        grid-template-columns: 1fr;
    }

    /* Contact */
    .contact-form {
        padding: 0 1rem;
    }

    /* Footer */
    .footer {
        padding: 2rem 1rem;
        height: auto;
    }

    .footer-links {
        flex-direction: column;
        align-items: center;
        margin: 0 auto 2rem auto;
        gap: 1rem;
    }

    .footer-contact-details {
        flex-direction: column;
        align-items: center;
        margin: 0 auto 2rem auto;
        gap: 0.5rem;
    }

    /* About section */
    #about {
        padding: 1.5rem;
        margin: 2rem 1rem;
    }

    .profile-image {
        width: 100px;
        height: 100px;
        margin: 0 auto 1rem auto;
        display: block;
        float: none;
    }

}
