* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background: #f9f9f9;
  color: #333;
  line-height: 1.6;
}

/* Add padding to the top of the body to account for the sticky header */
body.sticky-header-padding {
  padding-top: 80px; /* Adjust this value to match your header's height */
}

header {
  background: linear-gradient(135deg, #0073b1, #004b80);
  color: white;
  text-align: center;
    padding: 20px 0px;
}
html {
    scroll-behavior: smooth;
}

/* STICKY HEADER */
header.sticky {
  background: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: top 0.3s;
  padding: 0 1rem; /* Adjusted padding for sticky state */
}

header.sticky .header-content {
    padding: 1rem 0;
}

header.sticky .main-nav a {
    color: #333;
}

header.sticky .main-nav a:hover {
    color: #0073b1;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #fff;
  text-decoration: none;
}

header.sticky .logo {
    color: #004b80;
}

.main-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
}

.main-nav li {
  margin-left: 2rem;
}

.main-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.main-nav a:hover {
  color: #f0f0f0;
}

.hamburger-menu {
  display: none; /* Hidden on larger screens */
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #fff;
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    width: 100%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }

  .main-nav.active {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
  }

  .main-nav li {
    margin: 0;
    text-align: center;
  }

  .main-nav a {
    display: block;
    padding: 1rem;
    border-bottom: 1px solid #f0f0f0;
    color: #333;
  }

  .hamburger-menu {
    display: block;
  }
}

header.sticky .hamburger-menu {
    color: #333;
}

header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

header p {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.btn {
  background: white;
  color: #0073b1;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}

.btn:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
}

.header-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

section {
  padding: 3rem 1rem;
}

.container {
  max-width: 1100px;
  margin: auto;
    padding: 0px 10px;
}

h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: #0073b1;
}

/* About Me Section Styles */
.about-content {
  display: flex;
  align-items: center;
  gap: 3rem;
  margin-top: 2rem;
}

.about-photo {
  flex-shrink: 0;
}

.about-photo img {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #0073b1;
  box-shadow: 0 4px 12px rgba(0, 115, 177, 0.3);
    object-position: top;
}

.about-text {
  flex: 1;
}

.about-text p {
  margin-bottom: 1.2rem;
  line-height: 1.7;
  font-size: 1.1rem;
}

.intro-greeting {
  font-size: 1.3rem !important;
  font-weight: 600;
  color: #004b80;
  margin-bottom: 1.5rem !important;
}

/* Skills Section */
.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.skill-category {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.skill-category:hover {
  transform: translateY(-5px);
}

.skill-category h3 {
  color: #0073b1;
  margin-bottom: 1rem;
  border-bottom: 2px solid #0073b1;
  padding-bottom: 0.5rem;
}

.skill-category ul {
  list-style: none;
  padding: 0;
}

.skill-category li {
  margin-bottom: 0.75rem;
  font-size: 1rem;
  display: flex;
  align-items: center;
}

.skill-category li::before {
  content: '✓';
  color: #0073b1;
  font-weight: bold;
  margin-right: 0.75rem;
  font-size: 1.2rem;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.portfolio-item {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.portfolio-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.portfolio-item h3 {
  margin: 0.5rem;
  color: #004b80;
}

.portfolio-item p {
  margin: 0.5rem;
  font-size: 0.9rem;
}

.portfolio-item:hover {
  transform: scale(1.05);
}

.portfolio-description {
  padding: 1.5rem;
}

.portfolio-description p {
  margin-bottom: 1rem;
  line-height: 1.7;
  color: #444;
  font-size: 1rem;
}

.project-highlights {
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 6px;
  border-left: 4px solid #0073b1;
  margin-top: 1rem;
}

.project-highlights strong {
  color: #004b80;
  display: block;
  margin-bottom: 0.5rem;
}

.portfolio-item a {
  text-decoration: none;
  color: inherit;
  display: block;
  padding: 1rem 1.5rem 0;
}

.portfolio-item h3 {
  margin: 0 0 0.5rem 0;
  color: #0073b1;
  font-size: 1.3rem;
}

#load-more-portfolio,
#load-more-ai {
  display: block;
  margin: 2rem auto 0;
  background-color: #0073b1;
  color: #fff;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 25px;
  transition: all 0.3s ease;
}

#load-more-portfolio:hover,
#load-more-ai:hover {
  background-color: #005a8c;
  transform: scale(1.05);
}

.more-projects,
.more-ai-projects {
  display: none;
}

/* AI Tools Section */
#ai-tools {
  padding: 4rem 0;
  background: #f8f9fa;
}

.ai-tools-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.ai-tool-item {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 2rem;
  border-left: 5px solid #0073b1;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ai-tool-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.ai-tool-item h3 {
  color: #005a8c;
  margin-top: 0;
  font-size: 1.5rem;
}

.ai-tool-item p {
  line-height: 1.7;
  color: #555;
}

.ai-tool-item .project-highlights ul {
  padding-left: 20px;
  margin-top: 0.5rem;
}

.ai-tool-item .project-highlights li {
  margin-bottom: 0.5rem;
}

/* Responsive Design for About Me Section */
@media (max-width: 768px) {
  .about-content {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }
  
  .about-photo img {
    width: 200px;
    height: 200px;
  }
  
  .about-text p {
    font-size: 1rem;
  }
  
  .intro-greeting {
    font-size: 1.2rem !important;
  }
}

@media (max-width: 480px) {
  .skills-container {
    grid-template-columns: 1fr;
  }
  
  .portfolio-description {
    padding: 1rem;
  }
  
  .portfolio-description p {
    font-size: 0.95rem;
  }
  
  .project-highlights {
    padding: 0.75rem;
    font-size: 0.9rem;
  }
  
  .ai-tool-item {
    padding: 1.5rem;
  }

  .ai-tool-item h3 {
    font-size: 1.3rem;
  }
}

/* CONTACT FORM */
.contact-intro {
  text-align: center;
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

#contact-form {
  max-width: 600px;
  margin: auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
}

#form-status {
  text-align: center;
  margin-top: 1rem;
  font-weight: bold;
}

/* FOOTER */
footer {
  background: #2c3e50;
  color: #ecf0f1;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  max-width: 1100px;
  margin: auto;
    padding: 40px 0px;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
    justify-content: space-between;
    width: -webkit-fill-available;
}

.footer-nav ul,
.social-links ul {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0;
}

.footer-nav a,
.social-links a {
  color: #ecf0f1;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-nav a:hover,
.social-links a:hover {
  color: #3498db;
}

.social-links i {
  font-size: 1.5rem;
}

.footer-info {
  text-align: right;
  font-size: 0.9rem;
  color: #bdc3c7;
    border-top: 1px solid #ccc;
    padding: 10px 0px;
}

.made-with-love {
  font-style: italic;
}
footer h4 {
    margin-bottom: 10px;
}
.portfolio-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

section {
  border-bottom: 1px solid #eee;
}


#form-status {
  margin-top: 15px;
  text-align: center;
  font-weight: 600;
}

#form-status.success {
  color: green;
}

#form-status.error {
  color: red;
}

#form-status {
  margin-top: 1rem;
  font-weight: bold;
  text-align: center;
}

#form-status.success {
  color: #0f8a2c;
}

#form-status.error {
  color: #d90429;
}

/* Fade + Up animation */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}

/* When element becomes visible */
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.main-nav a:hover {
  opacity: .8;
}


/* Hide normal nav on small screens */
@media (max-width: 900px) {

  .main-nav {
    position: fixed;
    top: 0;
    right: -260px;
    width: 260px;
    height: 100vh;
    background: #111;
    padding: 80px 25px;
    box-shadow: -10px 0 25px rgba(0,0,0,.25);
    transition: right .3s ease;
    z-index: 9999;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 20px;
  }

  .main-nav a {
    color: #fff;
    font-size: 18px;
  }

  .main-nav.open {
    right: 0;
  }

  .hamburger-menu {
    display: block;
    font-size: 24px;
    background: none;
    border: none;
    color: #333;
    cursor: pointer;
    z-index: 10000;
  }

  /* overlay */
  /*.menu-overlay {*/
  /*  position: fixed;*/
  /*  inset: 0;*/
  /*  background: rgba(0,0,0,.45);*/
  /*  opacity: 0;*/
  /*  pointer-events: none;*/
  /*  transition: opacity .3s ease;*/
  /*  z-index: 9998;*/
  /*}*/

  /*.menu-overlay.show {*/
  /*  opacity: 1;*/
  /*  pointer-events: auto;*/
  /*}*/
}

