/* Reset Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body Styles */
html, body {
  height: 100%;
  margin: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #ffffff;
  background-color: #1e1e1e;
  /*display: flex;*/
}

/* Scrollbar Styles */
body::-webkit-scrollbar {
  width: 8px;
}

body::-webkit-scrollbar-thumb {
  background: #444;
  border-radius: 4px;
}

/* Sidebar Styles */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 250px;
  height: 100%;
  background: linear-gradient(180deg, #2e2e2e, #1e1e1e);
  padding-top: 20px;
  text-align: center;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.profile img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 3px solid #ff6347;
}

.profile h2 {
  margin-top: 15px;
  font-size: 22px;
  color: #ff6347;
}

.nav-menu {
  margin-top: 30px;
  flex-grow: 1;
}

.nav-menu ul {
  list-style: none;
}

.nav-menu li {
  margin: 15px 0;
}

.nav-menu a {
  text-decoration: none;
  color: #ffffff;
  font-size: 18px;
  display: flex;
  align-items: center;
  padding: 10px;
  transition: background 0.3s;
}

.nav-menu a i {
  margin-right: 10px;
}

.nav-menu a:hover {
  background: #ff6347;
  border-radius: 4px;
}

.menu-toggle {
  display: none;
  position: fixed;
  top: 20px;
  left: 20px;
  background-color: #ff6347;
  color: #fff;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 4px;
  z-index: 1000;
}

.menu-toggle i {
  font-size: 20px;
}


/* Main Content Styles */
.main-content {
  margin-left: 250px;
  padding: 20px;
  min-height: calc(100vh - 60px);
}

/* Section Styles */
.section {
  padding: 60px 0;
}

.section-content {
  max-width: 1000px;
  margin: auto;
}

.section h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 32px;
  color: #ff6347;
}

/* Hero Section */
.hero-section {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('../images/hero-bg.jpg') no-repeat center center/cover;
}

.hero-section .section-content {
  text-align: center;
}

.hero-section h1 {
  font-size: 48px;
  margin-bottom: 20px;
}

.hero-section p {
  font-size: 24px;
}
/* General Button Styles */
.btn {
  display: inline-block;
  padding: 12px 20px;
  background-color: #ff6347;
  color: #ffffff;
  border-radius: 4px;
  text-decoration: none;
  font-size: 18px;
  transition: background 0.3s, transform 0.3s;
}

.btn:hover {
  background-color: #e5533d;
  transform: scale(1.05);
}

.btn i {
  margin-right: 8px;
}

/* Specific Styles for Hero Section Button */
.download-resume-hero {
  margin-top: 20px;
  display: inline-block;
}


/* Cards Styles */
.card {
  background: #2e2e2e;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  transform-style: preserve-3d;
  transition: transform 0.3s;
}

.card:hover {
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.5);
  transform: translateY(-5px);
}

/* Cards Container */
.cards-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  perspective: 1000px;
}

.cards-container .card {
  flex: 1 1 calc(33.333% - 20px);
}

.cards-container .card h3 {
  margin-bottom: 10px;
  font-size: 24px;
  color: #ff6347;
}

.cards-container .card p {
  font-size: 16px;
  color: #ccc;
}

/* Form Styles */
.contact-section form {
  display: flex;
  flex-direction: column;
}

.contact-section input,
.contact-section textarea {
  padding: 15px;
  margin-bottom: 15px;
  border: none;
  border-radius: 4px;
  font-size: 16px;
}

.contact-section button {
  padding: 15px;
  background: #ff6347;
  color: #ffffff;
  border: none;
  font-size: 18px;
  border-radius: 4px;
  cursor: pointer;
}

.contact-section button:hover {
  background: #e5533d;
}

/* Responsive Styles */
@media (max-width: 768px) {

  /* Sidebar */
  .menu-toggle {
    display: block; /* Show the toggle button on mobile screens */
  }
  .sidebar {
    position: fixed;
    top: 0;
    left: -250px;
    width: 250px;
    height: 100vh;
    transition: left 0.3s ease;
    background: linear-gradient(180deg, #2e2e2e, #1e1e1e);
    padding-top: 20px;
    text-align: center;
    z-index: 1000;
  } 
  .sidebar.active {
    left: 0; /* Show the sidebar when active */
  }

  .profile h2 {
    display: none;
  }
  
  .nav-menu {
    flex-direction: column;
  }
  
  .nav-menu a {
    justify-content: center;
  }

  .profile h2 {
    display: none;
  }

  /* Main Content */
  .main-content {
    margin-left: 0;
  }

  /* Cards Container */
  .cards-container .card {
    flex: 1 1 100%;
  }
}

/* Skills Section */
#skills {
  background-color: #1e1e1e;
  padding: 60px 0;
}

#skills h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 32px;
  color: #ff6347;
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.skill-card {
  background: #2e2e2e;
  width: 100px;
  height: 100px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.skill-card:hover {
  transform: translateY(-5px);
}

.skill-card i {
  font-size: 36px;
  color: #ff6347;
}

.skill-card span {
  margin-top: 10px;
  font-size: 14px;
  color: #ffffff;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .skill-card {
    width: 80px;
    height: 80px;
  }

  .skill-card i {
    font-size: 28px;
  }

  .skill-card span {
    font-size: 12px;
  }
}

/* Footer Styles */

.section:last-of-type {
  margin-bottom: 100px; /* Add margin to create space above the footer */
}

.footer {
  background-color: #1e1e1e;
  padding: 20px 0;
  text-align: center;
  color: #ffffff;
  position: fixed;
  bottom: 0;
  width: 100%;
  z-index: 1000;
  border-top: 2px solid #444;
}

.footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer p {
  margin-bottom: 10px;
  font-size: 14px;
}

.footer .social-links {
  display: flex;
  gap: 15px;
}

.footer .social-links a {
  color: #ffffff;
  font-size: 20px;
  transition: color 0.3s;
}

.footer .social-links a:hover {
  color: #ff6347;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .footer .social-links {
    gap: 10px;
  }

  .footer .social-links a {
    font-size: 18px;
  }
}

/* Download Resume Styles */
.download-resume {
  margin-bottom: 20px;
}

.download-resume a {
  display: inline-block;
  padding: 12px 20px;
  background-color: #ff6347;
  color: #ffffff;
  border-radius: 4px;
  text-decoration: none;
  font-size: 18px;
  margin: 0 auto;
  transition: background 0.3s;
}

.download-resume a:hover {
  background-color: #e5533d;
}

.download-resume a i {
  margin-right: 8px;
}

/* Experience Section */
.experience-section .cards-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.experience-section .card {
  width: 100%;
  margin-bottom: 20px; 
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3); 
  padding: 20px; 
  border-radius: 8px; 
  background-color: #2e2e2e; 
}
.experience-section .card h3 {
  font-weight: 600; /* Bold the job title */
  margin-bottom: 5px; /* Add some space below the job title */
}

.experience-section .card p:nth-of-type(1) {
  font-style: italic; /* Italicize the company name and date */
  color: #cccccc; /* Slightly lighter color for the company name */
  margin-bottom: 15px; /* Add space between company name and description */
}

.experience-section .card p:nth-of-type(2) {
  line-height: 1.6; /* Increase line height for readability */
  margin-bottom: 0; /* No margin needed below the description */
}
.experience-section .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s, box-shadow 0.3s; 
}

/* Blog Section Styles */
.blog-section .cards-container {
  display: flex;
  flex-wrap: wrap; 
  gap: 20px; 
}

.blog-section .card {
  display: flex; 
  flex-direction: row; 
  flex: 1 1 calc(50% - 20px); /* Two cards per row, subtracting gap */
  box-sizing: border-box; 
  max-width: calc(50% - 20px); 
  padding: 20px;
  border-radius: 8px;
  background-color: #2e2e2e; 
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.blog-thumbnail {
  width: 150px; 
  height: auto; 
  border-radius: 8px; 
  margin-right: 20px; 
}

.card-content {
  display: flex;
  flex-direction: column; 
  justify-content: center; 
}

.card-content h3 {
  margin: 0;
  margin-bottom: 10px;
  font-size: 24px;
  color: #ff6347;
}

.card-content p {
  font-size: 16px;
  margin-bottom: 10px;
  color: #ffffff; 
}

.read-more {
  align-self: flex-start; 
  padding: 8px 15px;
  background-color: #ff6347;
  color: #ffffff;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.3s;
}

.read-more:hover {
  background-color: #e5533d;
}
@media (max-width: 768px) {
  .blog-section .card {
    flex-direction: column; 
    align-items: center; 
    flex: 1 1 100%;
    max-width: 100%;
  }

  .blog-thumbnail {
    margin-bottom: 15px; 
    margin-right: 0; 
    width: 100%; 
    height: auto;
  }

  .card-content {
    align-items: center; 
    text-align: center; 
  }

  .read-more {
    align-self: center;
  }
}

