* {
  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;
      overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.project-card img, .skill-card img {
  width: 100%;
  max-height: 190px;
  object-fit: contain;
  border-radius: 5px;
}

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

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


.project-links {
    display: flex;
    justify-content: center;
    gap: 10px; /* Space between multiple links */
    margin-top: 10px; /* Space above the links */
}



















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

.login-container {
    max-width: 400px;
    margin: 100px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.login-container h2 {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: #1a202c;
}

















.projects-section h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #333;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    padding: 0 10px;
}



.project-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.project-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
    padding: 20px;
    transition: background-color 0.3s ease;
}



.project-card h3 {
    margin: 15px 0 10px;
    font-size: 1.25rem;
    color: #222;
}

.project-card p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.4;
}

.view-project {
    position: absolute;
    bottom: 15px;
    
    background-color: #0077cc;
    color: #fff;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.view-project:hover {
    background-color: #005fa3;
}
a{
    text-decoration: none;
}



















/* Add to existing styles.css */
.logo-img {
    max-width: 100px;
    margin-bottom: 10px;
}
.nav-menu ul {
    list-style: none;
    padding: 0;
}
.nav-menu ul li {
    margin: 15px 0;
}
.nav-menu ul li a {
    
    text-decoration: none;
    font-size: 1.1em;
}
.nav-menu ul li a:hover {
    color: #3b82f6;
}
.project-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}










/* Services Section Styling */
.services-section {
    padding: 60px 20px;
    background: #f9fafb; /* Light gray background for contrast */
    margin-bottom: 40px;
}

.services-section h2 {
    font-size: 2.5rem;
    color: #1a202c; /* Dark blue-gray for headers */
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    position: relative;
}

.services-section h2::after {
    content: '';
    width: 50px;
    height: 4px;
    background: linear-gradient(90deg, #1e40af, #3b82f6); /* Gradient underline */
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

/* Services Grid Layout */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Service Card Styling */
.service-card {
    background: #ffffff; /* White card background */
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05); /* Subtle shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e5e7eb; /* Light gray border like in the image */
}

.service-card:hover {
    transform: translateY(-5px); /* Lift effect on hover */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1); /* Enhanced shadow on hover */
}

/* Service Card Link */
.service-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Service Card Image */
.service-card img {
    width: 80px; /* Slightly smaller to match the image */
    height: 80px;
    object-fit: contain;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.service-card:hover img {
    transform: scale(1.1); /* Slight zoom on hover */
}

/* Service Card Title */
.service-card h3 {
    font-size: 1.3rem;
    color: #1a202c;
    margin-bottom: 10px;
    font-weight: 600;
    line-height: 1.3;
}

/* Service Card Description */
.service-card p {
    font-size: 0.95rem; /* Slightly smaller to match the image */
    color: #6b7280; /* Medium gray for readability, matching the image */
    line-height: 1.5;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .services-section h2 {
        font-size: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr; /* Stack cards on small screens */
        padding: 0 10px;
    }

    .service-card {
        padding: 15px;
    }

    .service-card img {
        width: 60px;
        height: 60px;
    }

    .service-card h3 {
        font-size: 1.1rem;
    }

    .service-card p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .services-section {
        padding: 40px 10px;
    }

    .services-section h2 {
        font-size: 1.8rem;
    }

    .service-card p {
        font-size: 0.85rem;
    }
}







/* Responsive Design */

/* 1024px Breakpoint */
@media (max-width: 1024px) {
  .sidebar {
    width: 200px;
  }

  .main-content {
    margin-left: 200px;
    width: calc(100% - 200px);
    padding: 1.5rem;
  }

  .projects-grid,
  .services-grid,
  .skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
  }
  .profile-info {
    display: flex
;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    align-items: center;
    gap: 8px;
}

  .profile-info h2 {
    font-size: 2rem;
  }

  .project-card img,
  .service-card img,
  .skill-card img {
    height: 180px;
  }

  .top-nav a {
    margin-right: 1rem;
    font-size: 0.9rem;
  }

  .contact-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }
}

/* 768px Breakpoint */
@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    width: 250px;
    height: 100%;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1000;
  }

  .sidebar.active {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0;
    width: 100%;
    padding: 1rem;
  }


  /* Mobile Menu Toggle */
  .menu-toggle {
    display: block;
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1100;
    background: none;
    border: none;
    cursor: pointer;
  }

  .menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: #333;
    margin: 5px 0;
    transition: all 0.3s ease;
  }

  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }

  .header {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.5rem 0;
  }

  .top-nav {
    margin-bottom: 1rem;
  }

  .top-nav a {
    display: block;
    margin: 0.5rem 0;
  }

  .profile-section {
    padding: 2rem 0;
    text-align: center;
    grid-template-columns: none;
  }
  .profile-info {
    display: flex;
    margin: 2px;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    align-items: center;
    gap: 8px;
}

  .profile-info h2 {
    font-size: 1.8rem;
  }

  .profile-info p {
    font-size: 0.9rem;
  text-shadow:
    -2px -2px 0 black,
     2px -2px 0 black,
    -2px  2px 0 black,
     2px  2px 0 black;
}


  }

  .projects-section h2,
  .services-section h2,
  .skills-section h2 {
    font-size: 1.8rem;
  }


/* 480px Breakpoint */
@media (max-width: 480px) {
  .projects-grid,
  .services-grid,
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }


  .project-card img,
  .service-card img,
  .skill-card img {
    height: 150px;
  }

  .project-card h3,
  .service-card h3,
  .skill-card h3 {
    font-size: 1.1rem;
    padding: 0.75rem;
  }

  .project-card p,
  .service-card p,
  .skill-card p {
    font-size: 0.85rem;
    padding: 0 0.75rem 0.75rem;
  }

  .project-links {
    padding: 0 0.75rem 0.75rem;
    flex-direction: column;
    gap: 0.5rem;
  }

  .view-project {
    font-size: 0.85rem;
  }
  .profile-info {
    display: flex
;
    margin: 2px;

    flex-direction: column;
    justify-content: center;
    text-align: center;
    align-items: center;
    gap: 8px;
}

  .profile-info h2 {
    font-size: 1.5rem;
  }

  .profile-info p {
    font-size: 0.85rem;
  }

  .projects-section h2,
  .services-section h2,
  .skills-section h2 {
    font-size: 1.5rem;
  }

  .contact-btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }

  .top-nav a {
    font-size: 0.85rem;
  }
}







@media (max-width: 480px) {
  /* Hide the navigation links */
  .top-nav {
    display: none;
  }

  /* Align the contact button to the left */
  header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
  }

  header .contact-btn {
    margin-left: 0;
  }
}
























.intro-loader {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  animation: zoomOut 1s ease 3s forwards;
}

.logo-animation {
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeOut 1s ease 3s forwards;

}

.hammer {
  width: 150px; height: 150px;
  background: url('hammer.svg') no-repeat center;
  background-size: contain;
  animation: hammerHit 2s ease forwards;
}

.logo-text {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.word {
  opacity: 0;
  font-family: 'Cinzel Decorative', serif;
  transform: translateY(30px);
  animation: flyIn 0.5s ease forwards;
  
}
.word:nth-child(1) { animation-delay: 0.5s; }
.word:nth-child(2) { animation-delay: 0.8s; }
.word:nth-child(3) { animation-delay: 1.1s; }

@keyframes hammerHit {
  0% { transform: rotate(0deg); }
  30% { transform: rotate(-30deg); }
  60% { transform: rotate(10deg); }
  100% { transform: rotate(0deg); }
  
}

@keyframes flyIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes zoomOut {
  to {
    transform: scale(1.05);
    opacity: 0;
    visibility: hidden;
  }
}

@keyframes fadeOut {
  to {
    opacity: 0;
  }
}




.cta-section {
  background: linear-gradient(135deg, #262626, #1e1e1e);
  color: #fff;
  padding: 60px 20px;
  text-align: center;
  margin: 40px 10px;
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.cta-section h2 {
  font-size: 2rem;
  margin-bottom: 15px;
}

.cta-section p {
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.cta-section ul {
  list-style: none;
  padding: 0;
  margin: 0 auto 25px;
  max-width: 400px;
  text-align: left;
}

.cta-section ul li {
  margin: 8px 0;
  padding-left: 20px;
  position: relative;
}

.cta-section ul li::before {
  content: '✔';
  position: absolute;
  left: 0;
  color: #27ae60;
}



/* Parent Flex Container */
.responsive-wrapper {
  display: flex;
  flex-direction: column;
}

/* Default Order */
.cta-section {
  order: 2;
}

.projects-section {
  order: 1;
}

/* On Small Screens, Swap Order */
@media screen and (max-width: 480px) {
  .cta-section {
    order: 1;
  }

  .projects-section {
    order: 2;
  }
}

