@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&display=swap');

* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Segoe UI', sans-serif;
background-color: rgb(12, 11, 10);
}
  
/* Navbar Styles */
.navbar {
position: sticky;
top: 0;             
z-index: 1000;    
background: rgba(0, 0, 0);
padding: 20px 35px;
display: flex;
justify-content: space-between;
align-items: center;
}
.logo {
color: #fff;
font-size: 1.8rem;
font-weight: bold;
}
.nav-links {
list-style: none;
display: flex;
gap: 50px;
}
.nav-links li a {
color: #fff;
text-decoration: none;
font-size: 1.1rem;
position: relative;
transition: color 0.3s;
}
.nav-links li a::after {
content: '';
position: absolute;
width: 0%;
height: 2px;
bottom: -4px;
left: 0;
background-color: #ee4f06;
transition: 0.4s ease;
}

.nav-links li a:hover::after {
width: 100%;
}

.nav-links li a:hover {
color: #ee4f06;
}

/* Hamburger Menu */
.hamburger {
display: none;
flex-direction: column;
cursor: pointer;
gap: 6px;
}

.hamburger span {
width: 25px;
height: 3px;
background: #fff;
border-radius: 2px;
transition: all 0.3s ease;
}

/* Responsive */
@media (max-width: 768px) {
.nav-links {
  position: absolute;
  top: 70px;
  right: 0;
  background: #18181b;
  flex-direction: column;
  width: 200px;
  height: auto;
  padding: 20px;
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
  box-shadow: -4px 0 6px rgba(0, 0, 0, 0.2);
  display: none;
}

.nav-links.active {
  transform: translateX(0);
  display: flex;
}

.hamburger {
  display: flex;
}

/* Hamburger animation */
.hamburger.toggle span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.toggle span:nth-child(2) {
  opacity: 0;
}
.hamburger.toggle span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}
}


/* Home section */
.home {
  position: relative;
  width: 100%;
  height: 90vh;
  overflow: hidden;
}
.home canvas {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.overlay-content {
  position: relative;
  z-index: 1;
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  padding-left: 8%;
  color: white;
} 
.home-content h3 {
  font-size: 32px;
  font-weight: 700;
  color: rgb(184, 184, 184);
  animation: slideBottom 1s ease forwards;
  animation-delay: 0.7s;
}
.home-content h1 {
  font-size: 56px;
  margin: 5px 0;
  font-weight: bold;
  color:  rgb(184, 184, 184);
}
.home-content h1 span {
  color: #ee4f06;
} 
.text {
  font-size: 32px;
  font-weight: 700;
  color: rgb(184, 184, 184);
  
}
.wipe-animated-link {
  margin: 20px 0;
  position: relative; 
  display: inline-block;
  padding: 10px 20px;
  border: 2px solid #ee4f06; 
  border-radius: 30px;
  color: #ee4f06;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  transition: color 0.4s ease;
  overflow: hidden; 
  z-index: 1; 
}

.wipe-animated-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ee4f06; 
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: -1; 
}
.wipe-animated-link:hover {
    color: white;  
}
.wipe-animated-link:hover::before {
    transform: translateX(0); 
}
.wipe-animated-link:active {
    transform: scale(0.98);
}
  
/* About Section */
  .about {
    margin: 50px 35px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding: 30px 40px;
    gap: 20px;
    background-color: #181819;
  }
  
  .about .text {
    flex: 1;
    max-width: 500px;
    margin: 0 20px;
    text-align: left;
  }
  
  .about .text h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #d4d4d4;
    text-align: center;
  }
  
  .about .text p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    color: #d4d4d4;
  }
  
  .skills {
    flex: 1;  
    border: 1px solid rgb(130, 130, 130);
    border-radius: 20px;
  }
  .skills h1{
    color: #d4d4d4;
    text-align: center;
    margin-top: 15px;
  }
  
  .icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
    justify-items: center;
    padding: 15px 15px;
  }
  
  .icon-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .icon-card img {
    width: 60px;
    height: 60px;
    transition: transform 0.3s ease;
  }
  
  .icon-card img:hover {
    transform: scale(1.2);
  }
  
  .icon-card p {
    font-size: 1rem;
    color: #fff;
    margin:10px 0;
  }
  
  @media (max-width: 768px) {
    .about{
      flex-direction: column; 
      gap: 20px; 
  }
  .text {
      max-width: 90%;
      margin: 0 auto; 
  }
    .text h1 {
      font-size: 2rem;
    }
  
    .text p {
      font-size: 0.9rem;
    }
  
    .icon-grid{
      display: flex;
      padding: 20px 30px;
      gap: 35px;
      flex-direction: row;
      flex-wrap: wrap;
      justify-content: center;
    }
    .icon-card img {
      width: 50px;
      height: 50px;
      margin: 0.2em;
      flex-grow: 1;
      flex-shrink: 0;
    }
  
    .icon-card p {
      font-size: 0.85rem;
    }
  }


/*Projects Section*/
.projects-section {
  padding: 3rem 5vw;
  background-color: #0c0b0a;
}

.projects-section h2 {
  text-align: center;
  color: #ee4f06;
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.project-card {
  background-color: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  overflow: hidden;
  transition: 0.3s ease;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.project-img-container {
  position: relative;
  overflow: hidden;
}

.project-img-container img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.project-img-container:hover img {
  transform: scale(1.1);
}

.tech-overlay {
  position: absolute;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.85);
  width: 100%;
  height: 100%;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  color: #fff;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.project-img-container:hover .tech-overlay {
  transform: translateX(0);
}

.tech-overlay h3 {
  margin-bottom: 0.5rem;
  color: #ee4f06;
}

.tech-overlay ul {
  list-style: disc;
  line-height: 1.6;
  padding-left: 1.2rem;
  font-size: 0.9rem;
}

.project-content {
  padding: 1rem;
}

.project-content h3 {
  font-size: 1.2rem;
  color: #ee4f06;
  margin-bottom: 0.5rem;
}

.project-content p {
  font-size: 0.9rem;
  line-height: 1.4;
  color: #ccc;
  margin-bottom: 1rem;
}

.icon-link {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background-color: #2c2c2c;
  border-radius: 50%;
  text-decoration: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: background-color 0.4s ease;
  overflow: hidden; 
}

.icon-link svg {
  width: 30px;
  height: 30px;
  fill: #a0a0a0; 
  transition: fill 0.4s ease;
}

.icon-link:hover {
  background-color: #333;
}

.icon-link:hover svg {
  fill: #ffffff;
  transform: scale(1.1);
}

.icon-text-link {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 0.5rem;
  background-color: #2c2c2c;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: background-color 0.4s ease;
  overflow: hidden;
}

.icon-text-link i {
  font-size: 30px; 
  color: #a0a0a0; 
  transition: color 0.4s ease;
  margin-right: 5px;
}

.link-text {
  font-size: 1.1rem;
  font-weight: 500;
  color: #a0a0a0;
  transition: color 0.4s ease;
}

.icon-text-link:hover {
  background-color: #333;
}

.icon-text-link:hover i{
  color: #ffffff;
  transform: scale(1.1);
}
.icon-text-link:hover .link-text {
  color: #ffffff;
  transform: scale(1.1);
}

@media (max-width: 600px) {
  .projects-section h2 {
    font-size: 2rem;
  }

  .project-content p {
    font-size: 0.85rem;
  }
}

 /* Certification Section */
 .cert-section {
  padding: 4rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}
.section-header h2 {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #ee4f06;
}
.section-header p {
  font-size: 1.1rem;
  color: #6b7280;
}
.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.cert-card {
  background-color: #181819;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  transform: translateY(40px);
  display: flex;
  flex-direction: column;
}

.cert-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.cert-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.cert-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: #b35919;
}

.cert-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #d4d4d4;
}

.cert-issuer {
  color: #a0a0a0;
  margin-top: 0.5rem;
  flex-grow: 1; 
}

.cert-link {
  display: inline-block;
  margin-top: 1.5rem;
  color: #b35919;
  font-weight: 600;
  text-decoration: none;
}

.cert-link:hover {
  text-decoration: underline;
}

@media (max-width: 992px) {
  .cert-grid {
      grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .cert-grid {
      grid-template-columns: 1fr;
  }
  .cert-section {
      padding: 3rem 1rem;
  }
  .section-header h2 {
      font-size: 2rem;
  }
}

/* Contact Section */
.contact-container {
  margin: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.5rem;
}

.contact-card {
  width: 100%;
  max-width: 64rem;
  margin: auto;
  background-color: rgba(26, 26, 26, 0.8);
  backdrop-filter: blur(4px);
  border-radius: 1rem; 
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25); 
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
}

.info-panel {
  background-color: rgba(104, 104, 104, 0.1);
  padding: 2rem; 
}

.info-content {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.title {
  font-size: 1.875rem; 
  font-weight: 700; 
  color: #df5504; 
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.description {
  margin-top: 1rem;
  color: #d2d2d2; 
}

.socials-container {
  margin-top: 2.5rem; 
}

.socials-title {
  font-size: 1.125rem; 
  font-weight: 600; 
  color: #939292; 
}

.socials-icons {
  margin-top: 1rem; 
  display: flex;
  gap: 1.5rem;
}

.social-icon {
  color: #eeeeee;
  transition: color 0.3s, transform 0.3s;
}
.social-icon svg {
  width: 2rem; 
  height: 2rem; 
}
.social-icon:hover {
  transform: scale(1.1);
}
.social-icon[aria-label="Twitter"]:hover { color: #3b82f6; } 
.social-icon[aria-label="LinkedIn"]:hover { color: #1d4ed8; } 
.social-icon[aria-label="GitHub"]:hover { color: black; }
.social-icon[aria-label="Instagram"]:hover { color: #ec4899; } 

.form-panel {
  padding: 2rem; 
}

#contactForm {
  display: flex;
  flex-direction: column;
  gap: 2rem; 
}

.input-group {
  position: relative;
}

.form-input {
  display: block;
  width: 100%;
  color: #dcfce7;
  padding: 0.75rem 1rem;
  background-color: transparent;
  border: none;
  border-bottom: 2px solid #d1d5db;
  transition: border-color 0.3s;
  resize: none;
  font-size: 18px;
}
.form-input:focus {
  outline: none;
  border-color: #dd620b;
}

.form-label {
  position: absolute;
  left: 1rem;
  top: 0.75rem;
  color: #d1d1d1; 
  pointer-events: none;
  transform-origin: top left;
  transition: all 0.3s;
}

.form-input:focus + .form-label,
.form-input:not(:placeholder-shown) + .form-label {
  transform: translateY(-1.25rem) scale(0.8);
  color: #dd620b; 
}

.submit-button {
  width: 100%;
  background-color: #eb5325; 
  color: white;
  font-size: 1rem;
  padding: 1rem 1.5rem;
  border: none;
  border-radius: 0.5rem; 
  cursor: pointer;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); 
  transition: all 0.3s ease-in-out;
}
.submit-button:hover {
  background-color: #d8231d; 
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1); 
  transform: translateY(-0.25rem);
}
.submit-button:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(246, 106, 59, 0.5); 
}

.success-message {
  display: none; 
  margin-top: 1.5rem;
  padding: 1rem;
  background-color: #dcfce7;
  border: 1px solid #4ade80;
  color: #15803d; 
  border-radius: 0.5rem;
}
.success-message p:first-child {
  font-weight: 700;
}

@media (min-width: 768px) { 
  .title {
      font-size: 2.25rem; 
  }
}

@media (min-width: 1024px) { 
  .contact-card {
      grid-template-columns: repeat(12, 1fr);
  }
  .info-panel {
      grid-column: span 5;
      padding: 3rem; 
  }
  .form-panel {
      grid-column: span 7;
      padding: 3rem; 
  }
}

/* Footer */ 
.footer {
  background: #111;
  color: #f1f1f1;
  padding: 40px 40px 20px;
  font-family: 'Segoe UI', sans-serif;
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

.footer-about h3 {
  margin-bottom: 10px;
  font-size: 1.5rem;
  color: #e25f07;
}

.footer-about p {
  font-size: 1rem;
  color: #aaa;
}

.footer-social a {
  margin: 0 10px;
  color: #aaa;
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

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

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  font-size: 0.9rem;
  color: #666;
}

@media (min-width: 768px) {
  .footer-container {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .footer-about {
    max-width: 50%;
  }
}
