/* General */
body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 50px;
  background: #111;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo img {
  height: 40px;
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 20px;
}

nav ul li a {
  text-decoration: none;
  color: #ffffff;
  transition: color 0.3s;
}

nav ul li a:hover {
  color: #ffffff;
}

/* Hero Section */
.hero {
  background: url('gallery-1.jpg') no-repeat center center/contain;
  color: rgb(0, 0, 0);
  height: 100vh;
  display: flex;
  align-items: center;
}

.hero-text.left-align {
  text-align: left;
  margin-left: 50px;
  animation: fadeSlide 1s ease-out;
}

.highlight-name {
  color: #000000; /* Contrast cyan */
  font-size: 3rem;
  font-weight: bold;
}

@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Section Headings */
h2, .center-title {
  text-align: center;
  margin-top: 0;
  font-size: 2rem;
}

/* About */
.about-container {
  display: flex;
  align-items: center;
  padding: 50px;
}

.about-container img {
  width: 300px;
  border-radius: 15px;
  margin-right: 40px;
}

/* Skills */
#skills {
  padding: 50px;
  background: #f7f7f7;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.skill-card {
  padding: 20px;
  background: #222;
  color: white;
  border-radius: 10px;
  text-align: center;
  transition: transform 0.3s;
}

.skill-card:hover {
  transform: scale(1.1);
  background: #00c6ff;
}

/* Services & Works Cards */
.services, .works {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 50px;
}

.service-card, .work-card {
  position: relative;
  height: 250px;
  border-radius: 15px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  color: white;
  display: flex;
  align-items: flex-end;
}

.service-card .overlay, .work-card .overlay {
  background: rgba(0,0,0,0.6);
  padding: 20px;
  width: 100%;
  text-align: left;
}

/* Contact */
#contact {
  background: #111;
  color: white;
  text-align: center;
  padding: 50px;
}

.contact-icons a {
  margin: 0 15px;
  font-size: 1.8rem;
  color: white;
  transition: color 0.3s;
}

.contact-icons a:hover {
  color: #00c6ff;
}

/* Responsive */
@media(max-width: 768px) {
  .about-container {
    flex-direction: column;
    text-align: center;
  }

  .about-container img {
    margin: 0 0 20px 0;
  }

  .hero-text.left-align {
    margin-left: 20px;
  }

  .highlight-name {
    font-size: 2.2rem;
  }
}

/* Services & Works Cards */
.services, .works {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 50px;
}

.service-card, .work-card {
  position: relative;
  height: 250px;
  border-radius: 15px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  color: white;
  display: flex;
  align-items: flex-end;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.service-card .overlay, .work-card .overlay {
  background: rgba(0,0,0,0.6);
  padding: 20px;
  width: 100%;
  text-align: left;
  transition: background 0.4s ease, color 0.4s ease;
}

/* Hover Effects */
.service-card:hover, .work-card:hover {
  transform: scale(1.05);
  box-shadow: 0px 8px 20px rgba(0,0,0,0.6);
}

.service-card:hover .overlay,
.work-card:hover .overlay {
  background: rgba(0,0,0,0.8);
}

.service-card:hover h3, .work-card:hover h3,
.service-card:hover p, .work-card:hover p {
  text-shadow: 0 0 10px rgba(255,255,255,0.8);
}
