/* Header background and layout */
header {
  background: linear-gradient(90deg, #1e3c72, #2a5298);
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0px 30px;
  height: auto;
}

/* Remove bullet points and style the nav */
.top_menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 25px;
}

/* Style the links */
.top_menu a {
  text-decoration: none;
  color: white;
  font-weight: bold;
  transition: color 0.3s;
  cursor: pointer;
}

.top_menu a:hover {
  color: #ffdd57; /* Change on hover */
}
/* Home section layout */
.home {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 60px 40px;
  background: linear-gradient(rgba(30, 60, 114, 0.7), rgba(42, 82, 152, 0.7)),
              url('C:/htmlcssWork/public/images/background.jpg') no-repeat center center/cover;
  color: white;
}

/* Image styling */
.home-image img {
  width: 300px;
  height: 250px;
  border-radius: 50%;
  transition: transform 0.4s ease, filter 0.4s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* Hover transformation */
.home-image img:hover {
  transform: scale(1.1) rotate(3deg);
  filter: brightness(110%) contrast(105%);
}

/* About me text styling */
.home-about {
  max-width: 600px;
  padding-left: 40px;
}

.home-about h2 {
  font-size: 2em;
  margin-bottom: 10px;
}

.home-about p {
  font-size: 1.1em;
  line-height: 1.6;
}
/* Buttons container */
.about-buttons {
  margin-top: 20px;
  display: flex;
  gap: 20px;
}

/* Base button styling */
.btn {
  display: inline-block;
  padding: 12px 24px;
  background-color: #ffffff;
  color: #2a5298;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Hover effect */
.btn:hover {
  transform: scale(1.05);
  background-color: #ffdd57;
  color: #000;
}

/* Optional: Different color for each button */
.hire-me {
  background-color: #ffdd57;
  color: #000;
}

.hire-me:hover {
  background-color: #fff;
  color: #2a5298;
}

.view-resume {
  background-color: #fff;
  color: #2a5298;
}

.view-resume:hover {
  background-color: #2a5298;
  color: #fff;
}
html {
  scroll-behavior: smooth;
}


/* About Section Layout */
.about {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f9f9f9;
  padding: 60px 40px;
  color: #333;
}

/* Text Content */
.about-content {
  flex: 1;
  padding-right: 40px;
}

.about-content h2 {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: #1e3c72;
}

.about-content p {
  font-size: 1.1em;
  line-height: 1.8;
}

/* Image Content */
.about-image {
  flex: 1;
  text-align: center;
}

.about-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  transition: transform 0.4s ease, filter 0.4s ease;
}

/* Hover effect on image */
.about-image img:hover {
  transform: scale(1.05) rotate(-2deg);
  filter: brightness(105%) contrast(105%);
}
.skills-section {
  padding: 60px 40px;
  background: linear-gradient(135deg, #e0ecff, #f9f9f9);
  color: #1e3c72;
  text-align: center;
}

.skills-section h2 {
  font-size: 2.8em;
  margin-bottom: 40px;
  color: #2a5298;
}

.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: auto;
}

.skill-card {
  background: white;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-card h3 {
  font-size: 1.3em;
  margin-bottom: 15px;
  color: #2a5298;
}

.skill-card p {
  font-size: 1em;
  color: #444;
  line-height: 1.6;
}

/* Hover effect */
.skill-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.education-section {
  padding: 60px 40px;
  background-color: #f9fafe;
  color: #1e3c72;
  text-align: center;
}

.education-section h2 {
  font-size: 2.5em;
  margin-bottom: 40px;
  color: #2a5298;
}

.education-timeline {
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}

.education-card {
  background: white;
  border-left: 5px solid #2a5298;
  padding: 20px 30px;
  border-radius: 8px;
  position: relative;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.education-card .icon {
  font-size: 2em;
  color: #2a5298;
  flex-shrink: 0;
}

.edu-details h3 {
  margin: 0 0 10px;
  font-size: 1.2em;
  color: #1e3c72;
}

.edu-details p {
  margin: 5px 0;
  font-size: 1em;
  color: #333;
}

.experience-section {
  padding: 60px 40px;
  background: linear-gradient(to bottom, #eef2f7, #ffffff);
  color: #1e3c72;
}

.experience-section h2 {
  text-align: center;
  font-size: 2.6em;
  margin-bottom: 50px;
  color: #2a5298;
}

.experience-timeline {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.experience-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: white;
  padding: 25px 30px;
  border-left: 5px solid #2a5298;
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.experience-item:hover {
  transform: translateY(-5px);
}

.exp-icon {
  font-size: 2em;
  color: #2a5298;
  flex-shrink: 0;
  margin-top: 5px;
}

.exp-details h3 {
  font-size: 1.3em;
  margin: 0;
  color: #1e3c72;
}

.exp-details h3 span {
  font-weight: normal;
  color: #555;
  font-size: 0.95em;
}

.exp-date {
  font-size: 0.95em;
  color: #888;
  margin-bottom: 10px;
}

.exp-details ul {
  padding-left: 20px;
  margin: 0;
  color: #333;
  font-size: 1em;
  line-height: 1.6;
}

.exp-details ul li {
  margin-bottom: 8px;
}

.projects-section {
  padding: 60px 40px;
  background-color: #f4f8fb;
  text-align: center;
}

.projects-section h2 {
  font-size: 2.5em;
  color: #2a5298;
  margin-bottom: 40px;
}

.project-category {
  margin-bottom: 50px;
}

.project-category h3 {
  font-size: 1.6em;
  margin-bottom: 20px;
  color: #1e3c72;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  justify-items: center;
}

.project-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  cursor: pointer;
  text-align: center;
}

.project-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.project-card:hover {
  transform: scale(1.03);
}

.project-title {
  padding: 15px;
  font-weight: bold;
  color: #2a5298;
}

/* Modal Styling */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 30px;
  border-radius: 10px;
  width: 90%;
  max-width: 600px;
  color: #333;
  position: relative;
}

.modal-content h3 {
  color: #2a5298;
  margin-bottom: 15px;
}

.modal-content ul {
  text-align: left;
  margin-top: 10px;
  padding-left: 20px;
}

.close {
  position: absolute;
  top: 15px;
  right: 25px;
  font-size: 28px;
  font-weight: bold;
  color: #888;
  cursor: pointer;
}

.close:hover {
  color: #333;
}

.contact-section {
  padding: 40px;
  background: #f5f5f5;
  text-align: center;
}

.contact-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.contact-icons img {
  width: 32px;
  height: 32px;
  transition: transform 0.3s ease;
}

.contact-icons img:hover {
  transform: scale(1.2);
}

.contact-form {
  max-width: 600px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  padding: 10px;
  font-size: 16px;
  border: 1px solid #aaa;
  border-radius: 5px;
}

.contact-form button {
  background-color: #2a5298;
  color: white;
  padding: 12px;
  font-size: 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.contact-form button:hover {
  background-color: #1e3c72;
}

.social-icons {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-left: auto;
  padding-right: 20px;
}

.social-icons img {
  width: 28px;
  height: 28px;
  transition: transform 0.2s ease;
}

.social-icons img:hover {
  transform: scale(1.2);
}
.site-footer {
  background: #1e3c72;
  color: white;
  text-align: center;
  padding: 20px 0;
  margin-top: 40px;
}

.footer-nav ul {
  list-style: none;
  padding: 0;
  margin-bottom: 15px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-nav a {
  color: white;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
}

.footer-nav a:hover {
  color: #f0c040;
}

.footer-icons img {
  width: 30px;
  height: 30px;
  margin: 0 10px;
  transition: transform 0.3s;
}

.footer-icons img:hover {
  transform: scale(1.2);
}

.sms{
  display: inline-block;
  padding: 12px 24px;
  background-color: #ffffff;
  color: #2a5298;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* --- Mobile Responsiveness --- */

@media (max-width: 768px) {
    /* Header & Navigation */
    header {
        flex-direction: column;
        padding: 15px;
    }

    .top_menu ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        margin-top: 15px;
    }

    .social-icons {
        margin: 15px auto 0;
        padding-right: 0;
    }

    /* Home Section */
    .home {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px;
    }

    .home-image img {
        width: 200px;
        height: 200px;
        margin-bottom: 20px;
    }

    .home-about {
        padding-left: 0;
    }

    .about-buttons {
        justify-content: center;
    }

    /* About Section */
    .about {
        flex-direction: column-reverse;
        padding: 40px 20px;
    }

    .about-content {
        padding-right: 0;
        text-align: center;
        margin-top: 30px;
    }

    /* Skills Grid */
    .skills-container {
        grid-template-columns: 1fr; /* Single column on small screens */
    }

    /* Experience & Education */
    .experience-item, .education-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .exp-icon, .education-card .icon {
        margin-bottom: 10px;
    }

    /* Projects Grid */
    .project-grid {
        grid-template-columns: 1fr;
    }

    /* Modals */
    .modal-content {
        width: 95%;
        margin: 20% auto;
        padding: 20px;
    }

    /* Footer */
    .footer-nav ul {
        gap: 10px;
    }
}

/* Extra small devices (phones) */
@media (max-width: 480px) {
    .home-about h2 {
        font-size: 1.5em;
    }
    
    .btn {
        padding: 10px 18px;
        font-size: 0.9em;
    }
}