:root {
  --main-color: #FFFFFF;  /* White */
  --bg-color: #000000;    /* Black */
  --text-color: #FFFFFF;  /* White */
  --accent-color: #000000; /* Black */
  --text-muted: #FFFFFF;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--bg-color);
  color: var(--text-color);
  font-family: 'Calibre', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-size: 18px;  /* Increased base font size */
  line-height: 1.7;  /* Increased line height for better readability */
}

/* General paragraph styling */
p {
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);  /* Increased paragraph font size */
  line-height: 1.8;
  margin-bottom: 1.2rem;
}

/* Intro section paragraphs */
.intro-content p {
  font-size: clamp(1.4rem, 2vw, 1.8rem);  /* Larger font for intro section */
  color: var(--main-color);
  margin-bottom: 2rem;
  line-height: 1.8;
  margin-top: 4rem;
}

/* Blog content paragraphs */
.blog-content p {
  font-size: 1.1rem;
  color: #666;
  margin: 0;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Service description paragraphs */
.service-content .desc {
  color: #7f8c8d;
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  line-height: 1.8;
}

/* Timeline content paragraphs */
.timeline-content p {
  color: #bbb;
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  line-height: 1.8;
  word-wrap: break-word;
}

/* Contact info paragraphs */
.contact-info p {
  color: #faf7f7;
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  line-height: 1.8;
}

/* Lead paragraph in about section */
.lead {
  font-size: clamp(1.2rem, 1.6vw, 1.4rem);
  color: #ccc;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

.nav-container {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1000;
  display: flex;
  align-items: center;
}

.logo {
  width: 40px;
  height: 40px;
  margin-right: 15px;
}

.logo svg {
  fill: var(--main-color);
}

.menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.menu-toggle:hover {
  opacity: 1;
}

.menu-toggle svg {
  width: 24px;
  height: 24px;
  fill: var(--main-color);
}

.menu-toggle svg rect {
  /* rx: 1; */
  opacity: 0.8;
}

.nav-menu {
  position: absolute;
  top: 60px;
  left: 0;
  background: rgba(0, 0, 0, 0.9);
  padding: 20px;
  border: 1px solid rgba(175, 221, 229, 0.2);
  border-radius: 12px;
  display: none;
  min-width: 200px;
  backdrop-filter: blur(5px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.nav-menu.active {
  display: block;
}

.nav-menu a {
  color: var(--text-color);
  text-decoration: none;
  display: block;
  padding: 10px 0;
  transition: color 0.3s ease;
}

.nav-menu a:hover {
  color: var(--main-color);
}

.row {
  width: 100%;
}

#intro {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
  position: relative;
}

.scroll-prompt {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-color);
  opacity: 0.7;
  font-size: 2rem;
  font-weight: normal;
}

.intro-content {
  max-width: 800px;
}

.intro-content h1 {
  font-size: 5.5rem;
  margin-bottom: 1rem;
  letter-spacing: 2px;
}

.scroll-down {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

.scroll-arrow {
  width: 30px;
  height: 30px;
  border: 2px solid var(--main-color);
  border-left: none;
  border-top: none;
  transform: rotate(45deg);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0) translateX(-50%);
  }
  40% {
    transform: translateY(-30px) translateX(-50%);
  }
  60% {
    transform: translateY(-15px) translateX(-50%);
  }
}

@media screen and (max-width: 768px) {
  .intro-content h1 {
    font-size: 2.8rem;
  }
  
  .intro-content p {
    font-size: 1.4rem;
  }
}

/* Projects and Languages Container */
.projects-languages-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Projects Section */
#projects {
    flex: 2;
    min-width: 300px;
    padding: 0;
    text-align: center;
    margin-bottom: 0;
}

.projects {
    max-width: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.projects p {
    margin: 0;
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
}

.repo-tag, .site-tag {
    text-decoration: none;
    padding: 12px 24px;
    border: 1px solid #000;
    font-size: 16px;
    min-width: 150px;
    text-transform: uppercase;
}

/* Style for site-tag (light version with #) */
.site-tag {
    background-color: white;
    color: black;
    position: relative;
}

.site-tag::before {
    content: '#';
    color: black;
    margin-right: 4px;
}

/* Style for repo-tag (dark version) */
.repo-tag {
    background-color: black;
    color: white;
    border: 1px solid #5a4a4a;
}

/* Title styling */
h1, h2 {
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
  color: var(--text-color);
  font-size: 2rem;
}

/* Tabs for projects */
.tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    justify-content: center;
    flex-wrap: nowrap;
}

.tab-button {
    padding: 12px 24px;
    background-color: #fff;
    color: #000;
    border: 2px solid #000;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
    font-size: 16px;
    text-transform: uppercase;
    white-space: nowrap;
}

.tab-button:hover {
    color: #fff;
    background-color: #000;
    border-color: #fff;
}

.tab-button.active {
    color: #fff;
    background-color: #000;
    border-color: #fff;
}

.category {
    display: none;
}

.category.active {
    display: block;
}

.category p {
    margin: 20px 0;
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

#stats h2 {
  margin: 2rem auto;
  font-size: 2.5rem;
  color: var(--text-color);
  font-weight: bold;
  text-align: center;
}

/* Single links (like BLOG, PROJECT EULER) */
p:has(> a:only-child) .site-tag,
p:has(> a:only-child) .repo-tag {
    min-width: 250px;  /* Make single items wider */
}

@media screen and (max-width: 768px) {
    .repo-tag, .site-tag {
        padding: 10px 20px;
        min-width: 120px;
        font-size: 14px;
    }
    
    p:has(> a:only-child) .site-tag,
    p:has(> a:only-child) .repo-tag {
        min-width: 200px;
    }

    h1, h2 {
        font-size: 2rem;
    }
}

/* blogs */
#blog {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  margin-bottom: 2rem;
}

.blog-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 20px;
  justify-content: space-between;
}

.blog-card {
  display: flex;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease;
  height: 200px;
  flex: 0 0 calc(50% - 15px);
  max-width: calc(50% - 15px);
}

.blog-card:hover {
  transform: translateY(-5px);
}

.blog-content {
  flex: 1;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  max-width: 60%;
}

.blog-content h3 {
  font-size: clamp(1.5rem, 2vw, 1.7rem);
  margin: 0 0 6px 0;
  color: #333;
  line-height: 1.4;
}

.blog-image {
  width: 50%;
  min-width: 0px;
  overflow: hidden;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: fill;
}

/* Laptop and smaller desktop screens */
@media (max-width: 1200px) {
  #blog {
    max-width: 90%;
  }
  .blog-card {
    height: 200px;
  }
}

/* Tablet */
@media (max-width: 768px) {
  .blog-card {
    flex: 0 0 100%;
    max-width: 100%;
    height: 180px;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .blog-card {
    flex-direction: column;
    height: auto;
  }
  .blog-image {
    width: 100%;
    height: 200px;
  }
  .blog-content {
    max-width: 100%;
  }
}

/* Footer */

.footer {
  /* background-color: #1e1e1e; */
  color: #fff;
  padding: 40px 0 20px;
  position: relative;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-row {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  text-align: center;
}

.footer-social {
  display: flex;
  gap: 25px; /* Increased gap between icons */
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-social a {
  color: var(--text-color);
  background-color: rgba(255, 255, 255, 0.1);
  width: 65px; /* Increased from 50px */
  height: 65px; /* Increased from 50px */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-social a i {
  font-size: 2.2rem; /* Increased from 1.8rem */
}

.footer-social a:hover {
  background-color: var(--accent-color);
  transform: translateY(-3px);
}

.copyright {
  font-size: 1.2rem;
  color: var(--text-muted);
  text-align: center;
  width: 100%;
  margin-top: 20px;
}

#go-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 600;
  display: none;
}

#go-top a {
  text-decoration: none;
  border: 0 none;
  display: block;
  height: 50px;
  width: 50px;
  background-color: rgba(0, 123, 255, 0.7);
  color: #fff;
  text-align: center;
  border-radius: 50%;
  transition: all 0.3s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

#go-top a:hover {
  background-color: var(--accent-color);
}

/* Responsive design */
@media (max-width: 768px) {
  .footer-row {
    flex-direction: column-reverse;
    text-align: center;
  }

  .footer-social {
    justify-content: center;
    margin-bottom: 20px;
  }

  .footer-social a {
    width: 55px; /* Increased from 45px */
    height: 55px;
  }
  
  .footer-social a i {
    font-size: 2rem; /* Increased from 1.6rem */
  }

  .copyright {
    font-size: 1.1rem;
    margin-top: 15px;
  }
}


/* CONTACT FORM */
#contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 50px 20px; /* Adds spacing around the content */

}

.form-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* flex-wrap: wrap; */
  /* margin-top: 20px; */
  /* justify-content: space-between; */
    /* background-color: rgba(255, 255, 255, 0.1); */
    padding: 2rem;
    border-radius: 10px;
    backdrop-filter: blur(5px);
    /* box-shadow: 0 0 20px rgba(255, 255, 255, 0.1); */
    width: 90%;
    max-width: 600px;
    /* display: flex; */
}

.form-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

label {
    display: block;
    color: #ccc;
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
}

input, textarea {
    width: 100%;
    padding: clamp(0.6rem, 2vw, 0.8rem);
    border: 1px solid var(--text-muted);
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
    transition: all 0.3s ease;
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    box-sizing: border-box;
}

input::placeholder {
    color: var(--text-muted);
}

input:focus, textarea:focus {
    outline: none;
    border-color: #666;
    background-color: rgba(255, 255, 255, 0.1);
}

input:focus::placeholder {
    color: transparent;
}

button {
    background: var(--accent-color);
    color: var(--text-color);
    background: linear-gradient(45deg, #666, #444);
    color: white;
    border: none;
    padding: clamp(0.8rem, 2vw, 1rem) clamp(1.5rem, 3vw, 2rem);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    font-size: clamp(1rem, 1.5vw, 1.2rem);
}

button:hover {
    background: linear-gradient(45deg, #777, #555);
    transform: translateY(-2px);
}

.form-title {
    text-align: center;
    margin-bottom: 2rem;
    color: #fff;
    font-size: clamp(1.5rem, 2.5vw, 1.8rem);
}

@media screen and (max-width: 480px) {
    .form-container {
        width: 95%;
        padding: 1.5rem;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-container {
    animation: fadeIn 0.5s ease-out;
}
/* Contact Info Section */
/* Contact Info Section Styling */
.contact-info {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px; /* Additional gap if needed */
  /* margin-top: 30px; */
  padding: 20px;
  /* background-color: #000; Dark grey for section background */
  /* border-radius: 8px; */
}

/* Individual Contact Columns */
.contact-info .col-four {
  flex: 1; /* Each column takes equal space */
  text-align: center;
  /* background-color: #333; Slightly lighter grey for columns */
  padding: 15px;
  /* border-radius: 8px; */
  color: #ebdcdc; /* Light text color */
  /* box-shadow: 0 4px 8px rgba(0, 0, 0, 0); */
}

.contact-info .icon {
  font-size: 1.5em;
  color: #007BFF; /* Blue for icons */
  margin-bottom: 10px;
}

.contact-info h5 {
  font-size: 1.2em;
  color: #6e6868;
  margin-bottom: 5px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .contact-info {
      flex-direction: column; /* Stack columns on smaller screens */
  }
}


/* about */

/* Section Intro */
#about {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px 20px;
  box-sizing: border-box;
}

.section-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
}

.section-intro h5 {
  color: #007BFF;
  font-size: 1.5em;
  margin-bottom: 10px;
}

.section-intro h1 {
  font-size: 2.5em;
  margin-bottom: 15px;
}

/* Timeline Section */
.resume-timeline {
  margin-bottom: 50px;
  width: 100%;
  max-width: 800px;
}

.resume-header h3 {
  color: var(--main-color);
  font-size: clamp(1.5rem, 2vw, 1.7rem);  /* Increased size */
  text-align: center;
  margin-bottom: 20px;
}

/* Timeline Wrap */
.timeline-wrap {
  margin: 0 auto;
  max-width: 800px;
}

.timeline-block {
  display: flex;
  align-items: flex-start;
  padding: 30px 20px;  /* Increased padding */
  border-bottom: 1px solid #333;
  gap: 25px;  /* Increased gap */
  position: relative;
  max-width: 100%;
}

/* Timeline Header */
.timeline-header {
  flex: 1;
  min-width: 0;
}

.timeline-header h3 {
  font-size: clamp(1.6rem, 2.2vw, 1.8rem);  /* Increased size */
  color: var(--main-color);
  margin-bottom: 8px;
  word-wrap: break-word;
  font-weight: 600;
}

.timeline-header p {
  color: var(--text-muted);
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);  /* Increased size */
  margin-bottom: 0;
}

/* Timeline Icon */
.timeline-ico {
  width: 50px;  /* Increased size */
  height: 50px;  /* Increased size */
  background-color: #000000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.timeline-ico i {
  color: #FFFFFF;
  font-size: clamp(1.2rem, 2vw, 1.4rem);  /* Increased size */
}

/* Timeline Content */
.timeline-content {
  flex: 2;
  min-width: 0;
}

.timeline-content h4 {
  font-size: clamp(1.6rem, 2.2vw, 1.8rem);  /* Increased size */
  color: var(--text-color);
  margin-bottom: 15px;
  word-wrap: break-word;
  font-weight: 600;
  line-height: 1.4;
}

.timeline-content p {
  color: var(--text-muted);
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);  /* Increased size */
  line-height: 1.8;  /* Increased line height */
  word-wrap: break-word;
  margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .timeline-block {
    flex-direction: column;
    align-items: flex-start;
    padding: 25px 15px;
    gap: 20px;
  }
  
  .timeline-header, .timeline-content {
    width: 100%;
  }

  .timeline-ico {
    width: 45px;
    height: 45px;
  }

  .timeline-content h4 {
    font-size: clamp(1.4rem, 1.8vw, 1.6rem);  /* Slightly smaller on mobile but still larger than before */
  }
}

/* HIRE ME BUTTONS */
.button-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px; /* Increased gap between buttons */
  margin-top: 180px;
}

/* Button base styles */
.button {
  padding: 16px 32px; /* Increased padding */
  border: 2px solid #fff;
  text-decoration: none;
  font-size: clamp(1.2rem, 1.5vw, 1.4rem); /* Increased font size */
  font-weight: bold;
  text-align: center;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
  min-width: 200px; /* Added minimum width */
}

/* Stroke button style */
.button.stroke {
  border-color: #fff;
  color: #000;
  background-color: #fff;
}

.button.stroke:hover {
  color: #6e6262;
  border-color: #007BFF;
}

/* Primary button style */
.button.button-primary {
  background-color: #000;
  color: #fff;
  border-color: #fff;
}

.button.button-primary:hover {
  background-color: #333;
  border-color: #333;
  color: #6e6262;
}

/* Responsive adjustments for buttons */
@media screen and (max-width: 768px) {
  .button-container {
    flex-direction: column;
    gap: 20px;
  }
  
  .button {
    width: 100%;
    max-width: 300px;
    padding: 14px 28px;
    font-size: 1.2rem;
  }
}

/* Services */


#services {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  /* min-height: 100vh; */
  padding: 20px;
  box-sizing: border-box;
}

.service-intro {
  text-align: center;
  padding: 40px 20px;
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}

.services-content {
  width: 100%;
  max-width: 1200px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.service-section {
  padding: 20px;
  text-align: center;
  border: 2px solid rgba(255, 255, 255, 0.164);
  border-radius: 5px;
}

.text-block {
  /* no max-width, full width of column */
}

.text-block h3 {
  font-size: 1.8rem;
  margin-bottom: 10px;
  color: var(--text-color);
  font-weight: bold;
}

.text-block p {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.6;
}



.services-content {
  width: 100%;
  margin: 0 auto;
  max-width: 1200px;
  padding: 0 20px;
  position: relative;
  overflow: hidden;
}

.services-list {
  display: flex;
  transition: transform 0.5s ease;
  gap: clamp(15px, 3vw, 30px);
  padding: 20px 0;
}

.service {
  background: #000;
  border-radius: 10px;
  padding: 30px;
  padding: clamp(20px, 4vw, 30px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  width: 100%;
  min-width: 280px;
  flex: 0 0 calc(33.333% - 20px);
  box-sizing: border-box;
  transition: all 0.3s ease;
}

 .icon {
  display: inline-block;
  width: clamp(40px, 8vw, 60px);
  height: clamp(40px, 8vw, 60px);
  background: #399cbd;
  border-radius: 50%;
  margin-bottom: 20px;
  position: relative;
}

 .icon i {
  color: white;
  font-size: clamp(1rem, 3vw, 1.5rem);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.service-content h3 {
  color: #2c3e50;
  margin-bottom: 15px;
  font-size: clamp(1.2rem, 3vw, 1.4rem);
}

.service-content .desc {
  color: #7f8c8d;
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  line-height: 1.8;
}

.nav-dots {
  text-align: center;
  margin-top: 30px;
  display: none;
}

.dot {
  height: 12px;
  width: 12px;
  margin: 0 8px;
  background-color: #fff;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.3s ease;
  cursor: pointer;
}

 .dot.active {
  background-color:#007BFF;
  transform: scale(1.2);
}

@media (max-width: 1024px) {
  .services-list {
      flex-wrap: nowrap;
      overflow-x: auto;
      scroll-snap-type: x mandatory;
      -webkit-overflow-scrolling: touch;
      padding-bottom: 20px;
  }

  .service {
      flex: 0 0 calc(50% - 15px);
      scroll-snap-align: start;
  }

  .nav-dots {
      display: block;
  }
}

@media (max-width: 768px) {
  .service {
      flex: 0 0 calc(100% - 30px);
      min-width: 250px;
  }

  .section-intro {
      padding: 30px 15px;
  }
}

@media (hover: none) {
  .services-list {
      cursor: grab;
  }
}

@keyframes fadeIn {
  from {
      opacity: 0;
      transform: translateY(20px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

.service {
  animation: fadeIn 0.6s ease forwards;
}

/* skills */
#stats {
  /* background: #121212; /* Slightly lighter black for a softer look */
  /* padding-top:2rem; Adjusted for balanced spacing */
  /* padding-bottom: 4rem; */
  text-align: center; 
  margin-bottom: 0;
  padding: 0;
}

#stats h2 {
  text-align: center;
  margin: 2rem auto;
  font-size: clamp(2rem, 3vw, 2.5rem);
  color: var(--text-color);
  font-weight: 600;
  position: relative;
  padding-bottom: 1rem;
}

#stats h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--main-color);
  margin: 0.5rem auto;
}

#stats .row {
  /* max-width: 1440px; */
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

@media (min-width: 768px) {
  #stats .row {
    flex-direction: row;
    justify-content: center;
    gap: 40px;
  }
}


#stats .icon-part i {
  font-size: 2.5rem;
  color: #399cbd;
  display: flex;
  align-items: center;
  justify-content: center;
}



 #stats .stat-title {
  color: var(--text-color);
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 600;
  width: 100%;
  display: block;
}


#sta#stats .row {
  /* max-width: 1440px; */
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}
ts .row {
  /* max-width: 1440px; */
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}


#stats .stat-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

#stats .stat-item {
  text-align: center;
  flex: 0 1 200px;
}

#stats .bgrid.stat {
  width: 100%;
  margin: 0;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  text-align: center;
}

#stats .bgrid.stat:hover {
  transform: none;
  background: rgba(255, 255, 255, 0.05);
}

#stats .icon-part {
  flex: 0 0 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#stats .icon-part i {
  font-size: 2.5rem;
  color: #399cbd;
  display: flex;
  align-items: center;
  justify-content: center;
}

#stats .stat-title {
  color: var(--text-color);
  font-size: 1.2rem;
  margin: 0;
  text-align: center;
}

/* Remove any hover effects */
#stats .bgrid.stat:hover {
  transform: none;
  background: rgba(255, 255, 255, 0.05);
}

/* Ensure proper spacing in the row */
#stats .row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
  text-align: center;
}

@media (min-width: 768px) {
  #stats .row {
    flex-direction: row;
    justify-content: center;
    gap: 40px;
  }
  
  #stats .bgrid.stat {
    flex: 0 0 calc(33.333% - 27px);
    min-width: 200px;
  }
}

@media screen and (max-width: 768px) {
  #stats .bgrid.stat {
    flex: 0 0 calc(50% - 20px);
  }
}

@media screen and (max-width: 480px) {
  #stats .bgrid.stat {
    flex: 0 0 100%;
  }
}

/* Increase section padding */
section {
    padding: 60px 20px;
}

/* Gift Box */
#giftbox {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    z-index: 1000;
    background-color: #000;
    padding: 10px;
    border-radius: 10px;
}

#giftbox img {
    width: 150px;
    height: 150px;
    display: block;
}

@media screen and (max-width: 768px) {
    #giftbox {
        top: 25% !important;
        right: 10px !important;
    }
    
    #giftbox img {
        width: 100px !important;
        height: 100px !important;
    }
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
}

.modal-content {
    background-color: #000;
    color: #fff;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #fff;
    width: 80%;
    max-width: 600px;
    max-height: 70vh;
    overflow-y: auto;
}

.close {
    color: #fff;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.subsection {
    margin-bottom: 20px;
}

.subsection h3 {
    color: #fff;
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    #giftbox {
        top: 100%;
    }
}

/* Increase container widths */
.container, 
.form-container,
.blog-container,
.services-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    body {
        font-size: 16px;
    }
    
    p {
        font-size: 1.1rem;
    }
    
    .intro-content p {
        font-size: 1.4rem;
    }
    
    section {
        padding: 40px 15px;
    }
}

@media screen and (max-width: 1024px) {
    .projects-languages-container {
        flex-direction: column;
        gap: 60px;
    }

    #projects, #stats {
        width: 100%;
    }

    #stats .row {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    #stats .bgrid.stat {
        flex: 0 0 calc(33.333% - 20px);
    }
}

@media screen and (max-width: 768px) {
    .projects-languages-container {
        padding: 20px;
    }

    #stats .bgrid.stat {
        flex: 0 0 calc(50% - 20px);
    }
}

@media screen and (max-width: 480px) {
    #stats .bgrid.stat {
        flex: 0 0 100%;
    }
}

/* Timeline Content */
.timeline-content h4 {
  font-size: clamp(1.6rem, 2.2vw, 1.8rem);  /* Increased size */
  color: var(--text-color);
  margin-bottom: 15px;
  word-wrap: break-word;
  font-weight: 600;
  line-height: 1.4;
}

/* Service Content */
.service-content h4 {
  font-size: clamp(1.5rem, 2vw, 1.7rem);  /* Added size for service h4 */
  color: var(--text-color);
  margin-bottom: 12px;
  font-weight: 600;
  line-height: 1.4;
}

/* Blog Content */
.blog-content h4 {
  font-size: clamp(1.5rem, 2vw, 1.7rem);  /* Added size for blog h4 */
  color: var(--text-color);
  margin-bottom: 12px;
  font-weight: 600;
  line-height: 1.4;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .timeline-content h4,
  .service-content h4,
  .blog-content h4 {
    font-size: clamp(1.4rem, 1.8vw, 1.6rem);  /* Slightly smaller on mobile but still larger than before */
  }
}



