@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css');



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

body {
  font-family: Arial, sans-serif;
  display: flex;
  background-color: #f5f5f5;
}

.sidebar {
  width: 250px;
  height: 100vh;
  background-color: #fff;
  padding: 20px;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
  position: fixed;
}

.logo {
    height: 90px;
    width: 200px;
  text-align: center;
  margin-bottom: 30px;
      background-image: url("logo2.png");
    background-size: cover; /* or cover */
  background-repeat: no-repeat;
  background-position: center;

}

.logo-img {
  width: 120px;
  height: auto;
  vertical-align: middle;
  margin-right: 10px;
  

}

.port {
  font-size: 1.5em;
  color: #333;
  display: inline-block;
  vertical-align: middle;
}

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

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

.nav-menu ul li a {
  text-decoration: none;
  color: #666;
  font-size: 1em;
}

.nav-menu ul li a:hover {
  color: #1e40af;
}

.main-content {
  margin-left: 250px;
  padding: 20px;
  flex: 1;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.top-nav a {
  text-decoration: none;
  color: #666;
  margin-right: 20px;
  font-size: 1em;
}

.top-nav a:hover {
  color: #1e40af;
}

.contact-btn {
  background-color: #1e40af;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  max-width: 120px;
}

.contact-btn:hover {
  background-color: #1e3a8a;
}

.profile-section {
  display: grid;
  grid-template-columns: 1fr 1fr ;
  gap: 20px;
  margin-bottom: 20px;
  background-color: #1a202c;
  color: #fff;
  padding: 20px;
  border-radius: 10px;
  background-image: url("profile3.jpg");
    background-size: cover; /* or cover */
  background-repeat: no-repeat;
  background-position: center;
  height: 250px;
}

.profile-img img, .hero-img img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
}

.profile-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.profile-info h2 {
  font-size: 1.5em;
  margin-bottom: 10px;
}

.profile-info p {
  font-size: 1em;
  margin-bottom: 10px;
  text-shadow: 5px;
}

.projects-section, .skills-section {
  margin-bottom: 20px;
}

.projects-section h2, .skills-section h2 {
  font-size: 1.5em;
  margin-bottom: 20px;
}

.projects-grid, .skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.project-card, .skill-card {
  background-color: #fff;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.project-card img, .skill-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 10px;
}

.project-card h3, .skill-card h3 {
  font-size: 1.2em;
  margin: 10px 0;
}

.project-card p, .skill-card p {
  color: #666;
  margin-bottom: 10px;
}

.view-project {
  color: #1e40af;
  text-decoration: none;
}

.view-project:hover {
  text-decoration: underline;
}






/* Existing CSS remains the same, add this at the end */

.success-message {
  background-color: #d4edda;
  color: #155724;
  padding: 10px;
  border-radius: 5px;
  margin-top: 10px;
  text-align: center;
}

.error-message {
  background-color: #f8d7da;
  color: #721c24;
  padding: 10px;
  border-radius: 5px;
  margin-top: 10px;
  text-align: center;
}










































/* Existing CSS remains the same, add this at the end */


.contact-hero {
  background-color: #1a202c;
  color: #fff;
  padding: 40px 20px;
  text-align: center;
  margin-bottom: 40px;
  border-radius: 10px;
}

.contact-hero h1 {
  font-size: 2.5em;
  margin-bottom: 10px;
}

.contact-hero p {
  font-size: 1.2em;
}

.contact-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.contact-info, .contact-form-wrapper, .contact-map {
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.contact-info h2, .contact-form-wrapper h2, .contact-map h2 {
  font-size: 1.8em;
  margin-bottom: 20px;
  color: #1a202c;
}

.contact-info p {
  font-size: 1em;
  margin-bottom: 10px;
  color: #4a5568;
}

.social-links {
  margin-top: 20px;
}

.social-icon {
  color: #1e40af;
  font-size: 1.5em;
  margin-right: 15px;
  text-decoration: none;
}

.social-icon:hover {
  color: #1e3a8a;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 1em;
  margin-bottom: 5px;
  color: #2d3748;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  padding: 12px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1em;
  background-color: #edf2f7;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #1e40af;
  outline: none;
}

.form-group textarea {
  resize: vertical;
}

.submit-btn {
  background-color: #1e40af;
  color: #fff;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-size: 1.1em;
  cursor: pointer;
  transition: background-color 0.3s;
}

.submit-btn:hover {
  background-color: #1e3a8a;
}

.contact-map .map-placeholder {
  height: 200px;
  background-color: #e2e8f0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4a5568;
  font-size: 1em;
}

/* Ensure Font Awesome for social icons */


/* Responsive Design */
/* Responsive Design */
/* Responsive Design */

/* 1024px Breakpoint */
@media (max-width: 1024px) {
  .sidebar {
    width: 200px !important;
    padding: 1.5rem !important;
  }
  .main-content {
    margin-left: 200px !important;
    width: calc(100% - 200px) !important;
    padding: 1.5rem !important;
  }
  .contact-hero {
    padding: 1.5rem !important;
    margin-bottom: 1.5rem !important;
  }
  .contact-hero h1 {
    font-size: 2rem !important;
  }
  .contact-hero p {
    font-size: 1rem !important;
  }
  .contact-container {
    flex-direction: column !important;
    gap: 1.5rem !important;
    padding: 0 1rem !important;
  }
  .contact-info {
    text-align: center !important;
    padding: 1.5rem !important;
  }
  .contact-info h2 {
    font-size: 1.8rem !important;
  }
  .contact-form-wrapper {
    padding: 1.5rem !important;
  }
  .contact-form-wrapper h2 {
    font-size: 1.8rem !important;
  }
  .form-group input,
  .form-group textarea {
    font-size: 0.9rem !important;
    padding: 0.75rem !important;
  }
  .submit-btn {
    padding: 0.6rem 1.2rem !important;
    font-size: 0.9rem !important;
  }
  .social-links .social-icon {
    font-size: 1.2rem !important;
    margin: 0 0.5rem !important;
  }
  .success-message,
  .error-message {
    font-size: 0.9rem !important;
    padding: 0.75rem !important;
  }
}

/* 768px Breakpoint */
@media (max-width: 768px) {
  .sidebar {
    position: fixed !important;
    width: 250px !important;
    height: 100% !important;
    transform: translateX(-100%) !important;
    transition: transform 0.3s ease !important;
    z-index: 1000 !important;
    visibility: hidden !important; /* Ensure sidebar is hidden by default */
    background-color: #fff !important; /* Explicitly set to default white */
  }
  .sidebar.active {
    transform: translateX(0) !important;
    visibility: visible !important;
  }
  .main-content {
    margin-left: 0 !important;
    width: 100% !important;
    padding: 1rem !important;
  }
  .menu-toggle {
    display: block !important;
    position: fixed !important;
    top: 1rem !important;
    right: 1rem !important;
    z-index: 1100 !important;
    background: none !important;
    border: none !important;
    cursor: pointer !important;
  }
  .menu-toggle span {
    display: block !important;
    width: 25px !important;
    height: 3px !important;
    background: #333 !important;
    margin: 5px 0 !important;
    transition: all 0.3s ease !important;
  }
  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px) !important;
  }
  .menu-toggle.active span:nth-child(2) {
    opacity: 0 !important;
  }
  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px) !important;
  }
  .contact-hero {
    padding: 1.5rem !important;
    margin-bottom: 1.5rem !important;
  }
  .contact-hero h1 {
    font-size: 1.8rem !important;
  }
  .contact-hero p {
    font-size: 0.9rem !important;
  }
  .contact-container {
    flex-direction: column !important;
    gap: 1rem !important;
    padding: 0 0.5rem !important;
  }
  .contact-info {
    padding: 1rem !important;
  }
  .contact-info h2 {
    font-size: 1.6rem !important;
  }
  .contact-info p {
    font-size: 0.9rem !important;
  }
  .contact-form-wrapper {
    padding: 1rem !important;
  }
  .contact-form-wrapper h2 {
    font-size: 1.6rem !important;
  }
  .form-group input,
  .form-group textarea {
    font-size: 0.9rem !important;
    padding: 0.75rem !important;
  }
  .submit-btn {
    padding: 0.6rem 1.2rem !important;
    font-size: 0.9rem !important;
  }
  .social-links {
    margin-top: 1rem !important;
  }
  .social-links .social-icon {
    font-size: 1.1rem !important;
    margin: 0 0.4rem !important;
  }
  .success-message,
  .error-message {
    font-size: 0.9rem !important;
    padding: 0.75rem !important;
  }
}

/* 480px Breakpoint */
@media (max-width: 480px) {
  .sidebar {
    width: 100% !important;
    padding: 0.75rem !important;
    transform: translateX(-100%) !important;
    visibility: hidden !important;
    background-color: #fff !important; /* Explicitly set to default white */
  }
  .sidebar.active {
    transform: translateX(0) !important;
    visibility: visible !important;
  }
  .nav-menu ul li {
    margin-bottom: 0.5rem !important;
  }
  .nav-menu ul li a {
    font-size: 0.85rem !important;
  }
  .main-content {
    padding: 0.75rem !important;
  }
  .contact-hero {
    padding: 1rem !important;
    margin-bottom: 1rem !important;
  }
  .contact-hero h1 {
    font-size: 1.5rem !important;
  }
  .contact-hero p {
    font-size: 0.85rem !important;
  }
  .contact-container {
    flex-direction: column !important;
    gap: 1rem !important;
    padding: 0 0.5rem !important;
  }
  .contact-info {
    padding: 0.75rem !important;
  }
  .contact-info h2 {
    font-size: 1.4rem !important;
  }
  .contact-info p {
    font-size: 0.85rem !important;
  }
  .contact-form-wrapper {
    padding: 0.75rem !important;
  }
  .contact-form-wrapper h2 {
    font-size: 1.4rem !important;
  }
  .form-group label {
    font-size: 0.85rem !important;
  }
  .form-group input,
  .form-group textarea {
    font-size: 0.85rem !important;
    padding: 0.5rem !important;
  }
  .submit-btn {
    padding: 0.5rem 1rem !important;
    font-size: 0.85rem !important;
  }
  .social-links .social-icon {
    font-size: 1rem !important;
    margin: 0 0.3rem !important;
  }
  .success-message,
  .error-message {
    font-size: 0.85rem !important;
    padding: 0.5rem !important;
  }
}