:root {
  --primaryBlack: #1a1a1a;
  --secondaryBlack: #4f709c;
  --mainWhite: #e5dada69;
  --mainYellow: #e5d283;
  --transparentClr: rgb(24, 26, 27, 0.5);
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
/* Global font settings */
body {
  font-family: "Roboto Mono", monospace;
  color: var(--primaryBlack);
  background-color: var(--mainWhite);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Oswald", sans-serif;
}
a {
  color: var(--primaryBlack);
  text-decoration: none;
}
.navbar li {
  list-style-type: none;
}
/* Default styles for larger screens */
nav {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1); /* subtle shadow */
  position: sticky;
  top: 0;
  z-index: 1000;
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1px 2px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo img {
  height: 50px; /* adjust logo size */
  width: auto;
  display: block;
}
.nav-links {
  display: flex;
  align-items: center;
}
.nav-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 30px; /* space between links */
}
.nav-links li a {
  text-decoration: none;
  color: #1a1a1a;
  font-weight: 500;
  font-size: 1.1rem;
  transition: color 0.3s;
}
.nav-links li a:hover,
.nav-links li a.active { /* optional: for current page highlight */
  color: var(--secondaryBlack); /* your primary blue from earlier sections */
}
.bar-icon {
  display: none; /* hidden on desktop */
  background: none;
  border: none;
  font-size: 1.8rem;
  color: #1a1a1a;
  cursor: pointer;
  padding: 10px;
}
@media (max-width: 768px) { /* adjust breakpoint as needed – 768px is common for tablets/phones */
  .bar-icon {
    display: block; /* show hamburger on mobile */
  }

  .nav-links {
    position: absolute;
    top: 100%; /* right below nav bar */
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    max-height: 0; /* hidden by default */
    transition: max-height 0.4s ease, opacity 0.3s ease;
    opacity: 0;
  }

  .nav-links.active {
    max-height: 400px; /* enough for your 5 links – or use a large number like 1000px */
    opacity: 1;
  }

  .nav-links ul {
    flex-direction: column;
    padding: 20px;
    gap: 20px;
  }

  .nav-links li a {
    display: block;
    padding: 12px 0;
    font-size: 1.2rem;
  }

  /* Optional: animate links sliding/fading in */
  .nav-links.active ul li {
    opacity: 0;
    transform: translateY(20px);
    animation: slideIn 0.5s forwards;
  }

  @keyframes slideIn {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

#hero {
  min-height: 100vh;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  display: flex;
  align-items: center;
  padding: 80px 20px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  width: 100%;
}
.hero-image-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  padding: 40px 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hero-image-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}
.hero-img {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  overflow: hidden;
  border: 6px solid #ffffff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  margin-bottom: 24px;
}
.hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-info h2 {
  font-size: 2.2rem;
  margin: 0 0 12px;
  color: #1a1a1a;
  font-weight: 700;
}
.hero-info p {
  font-size: 1.1rem;
  color: #555;
  margin: 0 0 8px;
  line-height: 01.6;
}
.hero-icons {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 24px;
}
.hero-btn {
  width: 52px;
  height: 32px;
  border-radius: 2px;
  background: var(--mainWhite);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 2px rgba(0, 119, 182, 0.2);
}
.hero-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 119, 182, 0.3);
}
.cv-btn {
  padding: 4px 4px;
  border-radius: 2px;
  background: var(--mainWhite);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 2px rgba(0, 119, 182, 0.2);
}
.cv-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 119, 182, 0.3);
}
.hero-text {
  padding: 20px 0;
}
.hero-text p {
  font-size: 1.15rem;
  line-height: 1.8;
  color: #444;
  margin-bottom: 32px;
}
/* Mobile responsive */
@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .hero-image-card {
    padding: 35px 25px;
  }

  .hero-img {
    width: 160px;
    height: 160px;
  }

  .hero-info h2 {
    font-size: 2rem;
  }
}

@media (max-width: 576px) {
  #hero {
    padding: 60px 15px;
  }

  .hero-icons {
    gap: 12px;
  }

  .hero-btn {
    width: 48px;
    height: 48px;
  }

  .hero-text p {
    font-size: 1.05rem;
  }

  .hero-text .cv.hero-btn {
    width: 100%;
    justify-content: center;
  }
}
/* ABOUT ME SECTION */
#about-me {
  padding: 10px 20px;
  background: #f8f9fa; /* Light background for contrast with white cards */
  text-align: center;
}
#about-me h2 {
  font-size: 2rem;
  margin: 0 0 20px;
  color: var(--primaryBlack);
  font-weight: 800;
  position: relative;
  display: inline-block;
  letter-spacing: -0.5px;
}
#about-me h2::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 5px;
  background: var(--primaryBlack);
  border-radius: 3px;
}
.about-section {
  max-width: 1300px;
  margin: 0 auto;
}
.about-container {
  padding: 0 15px;
}
.experince {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Each card at least 300px wide, auto-adjusts columns */
  gap: 35px; /* More breathing room between cards */
}
.experince > div {
  background: #ffffff;
  border-radius: 16px;
  padding: 15px 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  border: 1px solid #e9ecef;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.experince > div::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--primaryBlack);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.experince > div:hover::before {
  transform: scaleX(1);
}
.experince > div:hover {
  transform: translateY(-12px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
  border-color: transparent;
}
.experince i {
  font-size: 2.5rem;
  color: var(--primaryBlack);
  margin-bottom: 5px;
  display: block;
  transition: all 0.4s ease;
}
.experince h3 {
  font-size: 1.5rem;
  margin: 0 0 18px;
  color: #222;
  font-weight: 700;
}
.experince p {
  font-size: 1.05rem;
  line-height: 1;
  color: var(--primaryBlack);
  margin: 0;
}
/* Responsive adjustments */
@media (max-width: 1200px) {
  .experince {
    gap: 30px;
  }

  .experince > div {
    padding: 40px 30px;
  }
}

@media (max-width: 992px) {
  #about-me {
    padding: 80px 20px;
  }

  #about-me h2 {
    font-size: 2.6rem;
  }
}

@media (max-width: 768px) {
  .experince {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
  }

  .experince > div {
    padding: 35px 25px;
  }

  .experince i {
    font-size: 3rem;
  }
}

@media (max-width: 576px) {
  #about-me {
    padding: 60px 15px;
  }

  #about-me h2 {
    font-size: 2.2rem;
    margin-bottom: 50px;
  }

  .experince > div {
    padding: 30px 20px;
  }

  .experince h3 {
    font-size: 1.4rem;
  }

  .experince p {
    font-size: 1rem;
  }
}

/* SLIDE DISPLAY STYLING */
.slide {
  width: 90%;
  margin-left: 3.5%;
  margin-top: 2%;
  background-color: var(--mainWhite);
  /* padding: 4px; */
}

.slide h3 {
  color: var(--primaryBlack);
  text-align: center;
  font-size: 30px;
  font-family: "Oswald", sans-serif;
  margin-bottom: 0;
}
.slide-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-bottom: 10px;
  overflow: hidden;
  /* animation: slideAnimation 3s infinite;  */
  /* 2s duration for the animation, set to infinite for continuous loop */
  height: 90vh;
}
.slide-container img {
  max-width: 100%;
}
.slide-text {
  width: 70%;
  position: absolute;
  top: 50%;
  /* Center the text vertically */
  left: 50%;
  /* Center the text horizontally */
  transform: translate(-50%, -50%);
  /* Center the text precisely */
  background-color: rgba(48, 41, 41, 0.5);
  /* Background color with transparency */
  color: var(--mainWhite);
  /* Text color */
  padding: 25px;
  /* Padding around the text */
  font-size: 20px;
}
.slide-btn {
  text-align: center;
}

.slide-btn button {
  padding: 4px 10px;
  cursor: pointer;
  background-color: var(--primaryBlack);
  color: white;
  font-family: "Roboto Mono", monospace;
  border: 1px;
}
.slide-btn button a {
  color: white;
  padding: 4px 10px;
}

/* CSS for screens up to 486px */
@media screen and (max-width: 486px) {
  .slide {
    width: 90%;
    margin-left: 5%;
  }

  .slide h3 {
    font-size: 24px;
  }

  .slide-container {
    height: auto;
  }
  .slide-text {
    width: 80%;
    font-size: 10px;
    padding: 10px;
  }

  .slide-btn button {
    padding: 2px px;
    font-size: 10px;
  }
}

/* CSS for screens from 487px to 768px */
@media screen and (min-width: 487px) and (max-width: 768px) {
  .slide {
    width: 90%;
    margin-left: 5%;
  }

  .slide h3 {
    font-size: 26px;
  }

  .slide-text {
    width: 80%;
    font-size: 16px;
    padding: 20px;
  }
  .slide-container {
    height: auto;
  }

  .slide-btn button {
    padding: 10px 10px;
    font-size: 14px;
  }
}

/* BLOGS SECTION */
.blogs {
  padding: 10px 20px;
  background: #f8f9fa;
  text-align: center;
}

.blogs .heading {
  font-size: 1.8rem;
  margin: 0 0 16px;
  color: #1a1a1a;
  font-weight: 700;
  position: relative;
  display: inline-block;
}
.blogs .heading::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 4px;
  background: var(--primaryBlack);
  border-radius: 2px;
}
.blogs-container {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 40px;
}
.blog-link {
  text-decoration: none;
  color: inherit;
  display: block;
}
.blog-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  position: relative;
}
.blog-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15);
}
.blog-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.blog-card:hover .blog-img {
  transform: scale(1.1);
}
.blog-category {
  position: absolute;
  top: 20px;
  left: 20px;
  background: var(--primaryBlack);
  color: white;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
}
.blog-data {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 30px 0;
  color: #777;
  font-size: 0.95rem;
}
.spacer {
  width: 12px;
  height: 12px;
  background: var(--mainYellow);
  border-radius: 50%;
}
.blog-text {
  padding: 15px 30px 30px;
}
.blog-text p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--primaryBlack);
  margin: 0;
}
@media (max-width: 992px) {
  #projects, .blogs {
    padding: 80px 20px;
  }

  #projects h3, .blogs .heading {
    font-size: 2.4rem;
  }
}

@media (max-width: 768px) {
  .slide, .blogs-container {
    gap: 30px;
  }
}

@media (max-width: 576px) {
  #projects, .blogs {
    padding: 60px 15px;
  }

  #projects h3, .blogs .heading {
    font-size: 2.2rem;
  }

  .blog-img {
    height: 200px;
  }
}

/* FOOTER STYLING */
/* Footer / Contacts Section */
.footer {
  background: var(); /* Dark background for contrast */
  color: var(--primaryBlack);
  padding: 8px 20px 40px;
  text-align: center;
}
.footer-form,
.footer-links {
  max-width: 1200px;
  margin: 0 auto;
}
.footer h3 {
  font-size: 1.6rem;
  margin: 0 0 0px;
  color: var(--primaryBlack);
  font-weight: 500;
}

.footer-form form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
.footer-form label {
  display: block;
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--primaryBlack);
  font-weight: 500;
}
.footer-form input,
.footer-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #444;
  border-radius: 8px;
  background: var(--mainWhite);
  color: #fff;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}
.footer-form input:focus,
.footer-form textarea:focus {
  outline: none;
  border-color: #0d6efd;
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.2);
}
.footer-form textarea {
  resize: vertical;
  min-height: 120px;
}
.footer-btn {
  grid-column: 1 / -1; /* Span both columns */
  text-align: center;
  margin-top: 20px;
}
.footer-btn button {
  padding: 4px 40px;
  background: var(--mainYellow);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}
.footer-btn button:hover {
  background: var(--primaryBlack);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(38, 46, 57, 0.3);
}

@media (max-width: 992px) {
  .footer {
    padding: 60px 20px 40px;
  }

  .footer-form form {
    grid-template-columns: 1fr;
  }

  .footer-form {
    padding: 35px;
  }

  .footer h3 {
    font-size: 2rem;
  }
}

@media (max-width: 576px) {
  .footer {
    padding: 50px 15px 30px;
  }

  .footer-form {
    padding: 30px 20px;
  }

  .footer-btn button {
    width: 100%;
  }

  .footer-links i,
  .footer-links a {
    font-size: 2rem;
    width: 50px;
    height: 50px;
  }

  .social-icons {
    gap: 18px;
  }
}