/* Global Styles */
body {
  font-family: "Open Sans", sans-serif;
  color: #fff;
  background-color: #121212;
  margin: 0;
  padding: 0;
}

/* Header Styles */
#header {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 300px;
  background: #1f1f1f;
  padding: 20px;
  box-sizing: border-box;
  transition: left 0.3s ease;
  z-index: 1000;
}


#header .profile .social-links {
  text-align: center;
  margin-top: 15px;
}

#header .profile .social-links a {
  color: rgb(180, 175, 175);
  margin: 0 5px;
  font-size: 30px;
  text-decoration: none;
  transition: color 0.3s ease;
}

a {
  text-decoration: none; /* removes underline */
  color: #1E1E1E; /* default link color */
  transition: all 0.3s ease-in-out; /* smooth effect */
}

#header .profile .social-links a:hover { 
  color: white; 
}


/* Navigation Menu */
.nav-menu {
  margin-top: 30px;
}

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

.nav-menu a {
  display: block;
  padding: 10px 15px;
  color: #a8a9b4;
  text-decoration: none;
  font-size: 26px;
}

.nav-menu a i {
  margin-right: 8px;
  font-size: 20px;
}

.nav-menu a:hover,
.nav-menu .active>a {
  color: #ff6b6b;
}

/* Mobile Nav Toggle (Hamburger) */
.mobile-nav-toggle {
  position: fixed;
  top: 10px;
  left: 10px;
  font-size: 24px;
  color: #fff;
  cursor: pointer;
  z-index: 1001;
  display: none;
  background: none;
  border: none;
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
  #header {
      left: -300px;
  }

  #header.mobile-nav-active {
      left: 0;
  }

  .mobile-nav-toggle {
      display: block;
  }

  #main {
      margin-left: 0;
      transition: margin-left 0.3s ease; /* Added transition */
  }

  #main.mobile-nav-active {
      margin-left: 300px; /* Adjusted margin */
  }

  .project-links {
      justify-content: flex-start;
      flex-direction: column;
      margin-bottom: 20px;
  }

  .project-links a {
      margin-left: 0;
      margin-bottom: 5px;
  }
}

/* Main Content Styles */
#main {
  margin-left: 300px;
  padding: 20px;
  box-sizing: border-box;
}

section {
  padding: 40px 0;
}

/* Projects Section */
#projects {
  background-color: #121212;
  color: #fff;
  padding: 40px 20px;
}

#projects h2 {
  text-align: start;
  font-size: 36px;
  margin-bottom: 20px;
  margin-top: -40px;
}

.project-item {
  background-color: #1e1e1e;
  border-radius: 10px;
  margin-bottom: 30px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  position: relative;
}

.project-item h3 {
  color: #f39c12;
  font-size: 28px;
  margin-bottom: 15px;
  margin-top: -15px;
}

.project-links {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
  position: absolute;
  top: 10px;
  right: 10px;
}

.project-links a {
  color: #00bfae;
  text-decoration: none;
  font-weight: bold;
  margin: 10px;
  transition: all 0.3s ease;
}

.project-links a:hover {
  color: teal;
}

.project-tech i {
  font-size: 30px;
  margin: 10px;
  transition: all 0.3s ease;
}

.project-tech i:hover {
  transform: scale(1.1);
}

.project-tech .nodejs {
  color: #68a063;
}

.project-tech .angular {
  color: #dd1e2f;
}

.project-tech .html {
  color: #e34f26;
}

.project-tech .css {
  color: #2965f1;
}

.project-tech .bootstrap {
  color: #563d7c;
}

.project-tech .js {
  color: #f7df1e;
}

.project-tech .data {
  color: #00bfae;
}

/* Form Styles */
.contact-form {
  max-width: 1000px;
  margin: 20px auto;
}

.contact-form label {
  display: block;
  margin-bottom: 5px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  box-sizing: border-box;
}

.contact-form button {
  background-color: #ff6b6b;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

/* Footer Styles */
#footer {
  background: rgb(41, 47, 47);
  color: #fff;
  text-align: center;
  padding: 10px;
  position: fixed;
  left: 0;
  bottom: 0;
  width: 300px;
  box-sizing: border-box;
}

/* Media Queries */
@media (max-width: 768px) {
  #header {
      left: -300px;
  }

  #header.mobile-nav-active {
      left: 0;
  }

  #main {
      margin-left: 0;
      transition: margin-left 0.3s ease; /* Added transition */
  }

  #main.mobile-nav-active {
      margin-left: 300px;
  }

  #footer {
      position: static;
      width: 100%;
  }

  .project-links {
      position: relative;
      flex-direction: column;
      justify-content: flex-start;
      position: static;
  }

  .project-links a {
      margin-left: 0;
      margin-bottom: 5px;
  }
}

/* About Me Section Specific Styles */
#about .content {
  padding: 20px;
}

#about h3 {
  color: #f39c12;
  margin-top: 20px;
}

#about ul {
  list-style-type: none;
  padding-left: 0;
}

#about ul li {
  margin-bottom: 10px;
}

#about ul li h4 {
  font-size: 18px;
  margin-bottom: 5px;
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/

#hero {
  position: relative;
  height: auto;
  color: #fff;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 20px;
  padding-left: 320px;
}

#hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #1f1f1f;
  z-index: 1;
}

#hero .hero-content {
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 20px;
}

.hero-name h1 {
  font-size: 50px;
  margin: 0;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #ff6b6b;
}

.hero-typed p {
  font-size: 2rem;
  margin-top: 15px;
  font-weight: bold;
  color: #fff;
  line-height: 1.6;
}

.typed {
  font-size: 2.5rem;
  color: #ff6b6b;
}

#hero .cta-buttons {
  margin-top: 30px;
}

#hero .cta-buttons a {
  display: inline-block;
  background-color: #ff6b6b;
  color: white;
  padding: 12px 30px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  text-transform: uppercase;
  margin: 10px;
  transition: background-color 0.3s ease;
}

#hero .cta-buttons a:hover {
  background-color: #f39c12;
}

/* Responsive Design for Hero Section */
@media (max-width: 768px) {
  #hero {
      padding: 50px 20px;
      padding-left: 0;
      justify-content: center;
  }

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

  .hero-name h1 {
      font-size: 40px;
  }

  .hero-typed p {
      font-size: 1.5rem;
  }

  #hero .cta-buttons a {
      padding: 10px 25px;
  }
}

/* Styling for the hero container */
.hero-container {
  text-align: center;
  color: #fff;
  padding: 100px 20px;
}

.hero-container p {
  font-size: 2rem;
  margin: 0;
  font-weight: bold;
}

.typed {
  font-size: 2.5rem;
  color: white;
}

@media (max-width: 768px) {
  .hero-container p {
      font-size: 1.5rem;
  }
  
}

/* Global Styles */
body {
  font-family: "Open Sans", sans-serif;
  color: #fff;
  background-color: #121212;
  margin: 0;
  padding: 0;
}

/* Sidebar */
#header {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 300px;
  background: #1f1f1f;
  padding: 20px;
}

#header .profile img {
  width: 200px;
  border-radius: 10%;
  display: block;
  margin: 20px auto;
}


.project-img {
  height: auto;
  width:fit-content;
  max-width: 100%;
  border-radius: 10px;
  margin-top: 30px;
  margin-bottom: 15px;
  object-fit: cover;
}

/* Navigation */
.nav-menu a {
  display: block;
  padding: 10px 15px;
  color: #a8a9b4;
  font-size: 26px;
}

.nav-menu a:hover {
  color: #ff6b6b;
}

/* Hero Section */
#hero {
  position: relative;
  height: auto;
  color: #fff;
  padding: 20px;
  padding-left: 320px;
}

.hero-name h1 {
  font-size: 50px;
  font-weight: bold;
  color: #ff6b6b;
}

.hero-typed p {
  font-size: 2rem;
  color: #fff;
}

/* Contact Form */
.contact-form {
  max-width: 800px;
  margin: 20px auto;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
}

.contact-form button {
  background-color: #ff6b6b;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

#experience h2{
  text-align: start;
  font-size: 36px;
  margin-bottom: 20px;
  margin-top: -40px;
  padding: 40px 20px;
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
  #header {
      left: -300px; /* Initially hide the header */
  }

  #header.mobile-nav-active {
      left: 0; /* Show the header when active */
  }

  .mobile-nav-toggle {
      display: block; /* Show the hamburger */
  }

  #main {
      margin-left: 0;
      transition: margin-left 0.3s ease; /* For smooth transition */
  }

  #main.mobile-nav-active {
      margin-left: 300px; /* Adjust main content margin */
  }
}

@media (max-width: 768px) {
  /* ... (Your existing mobile styles) ... */

  #hero {
      padding-left: 0; /* Remove left padding */
      justify-content: center; /* Center the content */
      text-align: center; /* Center text within hero */
  }

  #hero .hero-content {
      align-items: center; /* Center content horizontally */
  }

  .hero-name h1,
  .hero-typed p {
    text-align: center; /* ensure the text is centered */
  }
}

#contact {
  padding: 60px 20px;
  color: #fff;
}

#contact h2 {
  margin-top: -15px;
  text-align: center;
  font-size: 36px;
  margin-bottom: 20px;
  color: #ff6b6b; /* Accent color */
}

.contact-intro {
  text-align: center;
  margin-bottom: 30px;
  font-size: 18px;
}

.contact-container {
  display: flex;
  justify-content: space-between;
  max-width: 900px;
  margin: 0 auto;
}

.contact-form {
  flex: 1;
  padding: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  color: #fff;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 16px;
  border: 1px solid #333;
  border-radius: 5px;
  background-color: #282828;
  color: #fff;
  box-sizing: border-box;
  font-size: 16px;
}

.form-group textarea {
  resize: vertical;
}

.submit-btn {
  background-color: #ff6b6b;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 24px;
  transition: background-color 0.3s ease;
  width: 100%; /* Full width on mobile */
}

.submit-btn:hover {
  background-color: darkred;
}

/* Responsive Design */
@media (max-width: 768px) {
  .contact-container {
      flex-direction: column;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .contact-container {
      flex-direction: column;
  }

  .contact-info {
      border-left: none;
      margin-left: 0;
      margin-top: 30px;
      border-top: 1px solid #333;
  }

}

/* Responsive Design */
@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
    }

    .contact-info {
        border-left: none;
        margin-left: 0;
        margin-top: 30px;
        border-top: 1px solid #333;
    }

    .form-group input,
.form-group textarea{
  width: 400px;
}
}

/* About Section */
#about {
  color: white;
  padding: 10px 20px 30px 10px; 
  position: relative;
  z-index: 2;
}
#about .about-container {
    margin-left: 0;  /* remove any inherited left margin */
    padding-left: 20px;
}


.about-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items:flex-start;
  max-width: 1000px;
  margin: 0 auto;
}

.about-content {
  flex: 1;
  font-size: 1.1rem;
  line-height: 1.2;
}

.about-content h2 {
  font-size: 36px;
  color: #ff6b6b;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.about-content ul {
  list-style-type: none;
  padding-left: 0;
}

.about-content ul li {
  margin-bottom: 15px;
  font-size: 1rem;
}

.about-content ul li h4 {
  display: inline;
  color: #f39c12;
  margin-right: 5px;
}

/* Responsive */
@media (max-width: 768px) {
  #about {
    padding-top: 100px;
  }

  .about-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .about-image img {
    width: 200px;
  }

  .about-content h2 {
    font-size: 28px;
  }

  .about-content ul li {
    font-size: 0.95rem;
  }
}
/* Offset main content for the fixed sidebar */
#main, #about {
    margin-left: 320px; /* same as the sidebar width + padding */
    transition: margin-left 0.3s ease;
}

/* Adjust for mobile */
@media (max-width: 768px) {
    #main, #about, #projects, #contact, #experience {
        margin-left: 0;
    }
}
