@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    text-decoration: none;
    list-style: none;
    scroll-behavior: smooth;
    font-family: 'Roboto', sans-serif;
}

:root {
    --big-color: #2a2a2a;
    --secondary-gig-color: #202020;
    --text-color: #fff;
    --secondary-color: #ffffff;
    --main-color: #05b4ff;
    --big-font: 5rem;
    --h2-font: 3rem;
    --p-font: 1.1rem;
}

body {
    background: var(--big-color);
    color: var(--text-color);
}
.footer{
    background-color: #fff;
    padding: 20px 0;
    color: #000;
    position: fixed;
    border-radius: 25px;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 100px;
  background: var(--bg-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
}
/* Hide the menu icon on desktop */
#menu-icon {
  display: none;
}
.logo {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-color);

}
span {
    color: var(--main-color);
}

.navlist {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    font-size: 17px;
    font-weight: 500;
    padding: 20px;
    transition: all 0.45s ease;
    color: var(--secondary-color);
}
.navlist :hover{
    color: var(--main-color);
}
.navlist a.active {
    color: var(--main-color);
}
section{
    padding: 160px 15% 120px;
}
.home{
    position: relative;
    height: 100vh;
    width: 100%;
    background-image: url(myphoto.jpg);
    background-size: cover;
    background-position: center;
    align-items: center;
    justify-content: flex-start;
}
.slide{
    margin-bottom: 20px;
}
.one{
    display: inline-block;
    margin-right: 15px;
    padding:0 15px;
    line-height: 32px;
    font-size: 20px;
    font-weight: 500;
    border-radius: 5px;
    background: var(--secondary-gig-color);
    
}
.two{
    display: inline-block;
   color: var(--secondary-color);
    font-size: 20px;
    font-weight: 500;
}
.home-text h1{
    font-size: var(--big-font);
    font-weight: 700;
    color:var(--text-color);
    line-height: 1.4;
    margin: 0 0.8px;
}
.home-text h3{
    color: var(--text-color);
    margin: 0 0 35px;
    font-size:3rem;
    font-weight: 700;
    line-height: 1.1;
}
.home-text p{
    color: var(--text-color);
    font-size: var(--p-font);
   line-height: 1.8;
   margin-bottom: 40px;
} 
.about-btn {
  padding: 10px 20px;
  background-color: var(--main-color);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  text-decoration: none;
  transition: background-color 0.3s ease;
}
.btn:hover {
  background-color: var(--secondary-gig-color);
  transform: scale(0.95);
}
.about {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
  padding: 40px;
  background-color: #fff;
}

.about-img {
  flex: 1;
  min-width: 280px;
  padding: 10px;
}

.about-img img {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 5px;
  object-fit: cover;
}

.about-text {
  flex: 2;
  min-width: 300px;
  padding: 10px;
}

.about-text h2 {
  font-size: var(--h2-font);
  color: var(--secondary-gig-color);
}

.about-text h4 {
  font-size: 24px;
  color: var(--secondary-gig-color);
  margin: 15px 0 30px;
}

.about-text p {
  font-size: var(--p-font);
  font-family: 'Poppins', sans-serif;
  color: var(--secondary-gig-color);
  line-height: 1.8;
  margin-bottom: 4rem;
}
.title h2{
    text-align: center;
    padding-top:50px;
}
title h2::after{
    content: "";
    height: 4px;
    width: 230px;
    background-color: #2a2a2a;
    display: block;
    margin: auto;

}
.btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--main-color);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  text-decoration: none;
  transition: background-color 0.3s ease;
}
.btn:hover {
  background-color: var(--secondary-gig-color);
  transform: scale(0.95);
}
.services{
width: 85%;
display: flex;
justify-content: space-between;
align-items: center;
margin: 75px auto;
text-align: center;
}
.card{
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: column;
    margin: 0px 20px;
    padding: 20px 20px;
    background-color:var(--text-color);
    border-radius: 10px;
    cursor: pointer;

}
.card:hover{
    background-color: var(--main-color);
    color: var(--text-color);
    transform: scale(1.05);
    transition: all 0.3s ease;
}
.card .icon{
    font-size: 35px;
    margin-bottom: 10px;
    background-color: var(--secondary-gig-color) ;
}
.card h3{
    font-size: 28px;
    color: #c94f4f;
    margin-bottom: 20px;

}
.card p{
    font-size: 17px;
    margin-bottom: 30px;
    line-height: 1.5;
    color: var(--secondary-gig-color);

}
.button{
    font-size: 15px;
    text-decoration: none;
    color: var(--text-color);
    padding: 8px 12px;
    border-radius: 5px;
    letter-spacing: 1px;
    background-color: var(--main-color);

}
.button:hover{
    background-color: var(--secondary-gig-color);
    color: var(--text-color);
    transform: scale(0.9);
}

.portfolio {
    padding: 100px 15%;
    background-color: var(--big-color);
}

.main-text h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
}
.portfolio-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 0;
    background-color: #fff;
}
.row {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}
.row:hover {
    transform: translateY(-5px);
}

/* Images & videos */
.row-img,
.row-video {
    width: 100%;
    border-radius: 8px;
    display: block;
    transition: transform 0.5s;
}

/* Hover effect */
.row:hover .row-img,
.row:hover .row-video {
    transform: scale(1.05);
}

/* Overlay layer */
.layer {
    width: 100%;
    height: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.4), #00a6ff);
    position: absolute;
    bottom: 0;
    left: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    border-radius: 8px;
    transition: height 0.5s ease;
    color: #fff;
    text-align: center;
}

/* Show overlay on hover */
.row:hover .layer {
    height: 100%;
}

/* Layer content */
.layer h2 {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.layer p {
    font-size: 0.95rem;
    line-height: 1.5;
}

.layer a {
    color: #fff;
    margin-top: 15px;
    background: #000;
    padding: 10px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition:  0.3s;
}

.layer a:hover {
    background: #00a6ff;
}
.contact {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  background-color: #0a0a0a; /* fallback background */
  padding: 50px;
  color: #fff;
}

.contact-text h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.contact-text span {
  color: #00a6ff;
}

.contact-text p {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 30px;
}

.list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.list li a {
  color: #ccc;
  font-size: 15px;
  text-decoration: none;
  transition: 0.3s;
}

.list li a:hover {
  color: #00a6ff;
}

.contact-icons a {
  display: inline-flex;
  height: 45px;
  width: 45px;
  background-color: #ffffff;
  color: #000000;
  font-size: 20px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  margin-right: 10px;
  transition: 0.3s;
}

.contact-icons a:hover {
  background-color: #fff;
  color: #3105f3;
}

.contact-form form {
  background-color: #1e1e1e;
  padding: 30px;
  border-radius: 10px;
}

.contact-form h3 {
  color: #fff;
  margin-bottom: 10px;
}

.contact-form p {
  font-size: 14px;
  color: #ccc;
  margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 15px;
  background-color: #2e2e2e;
  color: #fff;
  border: none;
  border-radius: 8px;
  margin-bottom: 15px;
  font-size: 15px;
  resize: none;
}

.contact-form .btn {
  background-color: #00a6ff;
  color: #fff;
  border: none;
  padding: 12px 20px;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}

.contact-form .btn:hover {
    background-color: var(--text-color);
  transform: scale(0.95);
  --text-color:var(--secondary-gig-color)
}
.footer{
    bottom: 0;
    width: 100%;
}
.footer-content{
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 960px;
    margin: 0 auto;
}
.footer-content p {
    margin: 5px 0;
}
.footer-content p:first-child{
    font-weight: bold;
}
/* ========== Base Responsive Fixes ========== */
@media (max-width: 1024px) {
  section {
    padding: 100px 5% 80px;
  }

  .about,
  .services,
  .contact,
  .portfolio-content {
    flex-direction: column;
    align-items: center;
  }

  .card {
    width: 100%;
    margin-bottom: 30px;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
}

/* ========== Tablet & Mobile Nav Fixes ========== */
@media (max-width: 768px) {
  nav {
    position: relative;
  }

  .menu-toggle {
    display: block;
    cursor: pointer;
    font-size: 24px;
    z-index: 1000;
  }

  .navlist {
    display: none;
    flex-direction: column;
    background-color: #000;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    text-align: center;
    padding: 20px 0;
    z-index: 999;
  }

  .navlist.active {
    display: flex;
  }

  nav ul li {
    margin: 10px 0;
  }

  .logo {
    font-size: 20px;
    font-weight: bold;
    color: #fff;
    padding: 10px 0;
  }

  .home {
    flex-direction: column;
    text-align: center;
    padding: 120px 5% 60px;
  }

  .home-text h1 {
    font-size: 2.2rem;
  }

  .home-text h3 {
    font-size: 1.2rem;
  }

  .home-text p {
    font-size: 0.95rem;
  }

  .title h2 {
    font-size: 1.6rem;
  }

  .button {
    font-size: 14px;
    padding: 8px 16px;
    width: auto; /* Fixes "About Me" button taking full width */
  }

  .card {
    width: 90%;
    margin: 10px 0;
  }

  .portfolio-content {
    grid-template-columns: 1fr;
  }

  .contact {
    grid-template-columns: 1fr;
    padding: 30px 20px;
  }

  .contact-form {
    margin-top: 30px;
  }

  .row {
    margin-bottom: 20px;
  }

  .layer {
    font-size: 0.9rem;
  }

  .row-img,
  .row-video {
    max-height: 250px;
    object-fit: cover;
  }
}

/* ========== Other Sizes (remain unchanged, only logo/menu optimized) ========== */
.footer {
  background-color: #000;
  color: #fff;
}
/* Show menu icon on mobile screens */
@media (max-width: 768px) {
  #menu-icon {
    display: block;
  }

  .navbar {
    display: none; /* optional: hide menu initially */
  }
}

