*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family:'Poppins', sans-serif;
}

body{
  background:#0f172a;
  color:#fff;
}

header{
  display:flex;
  justify-content:space-between;
  padding:20px 10%;
}

nav a{
  margin-left:18px;
  color:#fff;
  text-decoration:none;
}

span{ color:#ff0000; }

.hero{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:90px 10%;
}

.hero-image-frame{
  width:320px;
  height:370px;
  border-radius:100;
  display:flex;
}

.hero-image-frame img{
  width:280px;
  border-radius:5%;
  box-shadow:0 0 10px #ff0000;

}

.btn{
  margin-top:20px;
  padding:12px 30px;
  background:#ff0000;
  border:none;
  border-radius:30px;
  cursor:pointer;
  transition:0.3s;
}

.btn:hover{
  background:rgb(208, 10, 27);
  box-shadow:0 0 25px #900a0a;
}

.about{
  padding:80px 10%;
  background:#1e293b;
}

.section-title{
  text-align:center;
  font-size:36px;
  margin-bottom:50px;
}

.about-container{
  display:grid;
  grid-template-columns:1fr 2fr;
  gap:20px;
}

.about-card{
  background:#0f172a;
  padding:15px;
  border-radius:20px;
  box-shadow:0 0 25px rgba(255, 0, 0, 0.15);
}

.profile-card{
  text-align:center;
}

.profile-card img{
  width:250px;
  border-radius:30px;
  box-shadow:0 0 10px #ff0000;
  margin-bottom:15px;
}

.profile-card h3{
  margin:10px 0 5px;
}

.timeline-card{
  position:relative;
}

.timeline-item{
  position:relative;
  padding-left:15px;
  margin-bottom:25px;
}

.timeline-item h4{
  color:#ff0000;
  margin-bottom:5px;
}

.dot{
  position:absolute;
  left:0;
  top:6px;
  width:12px;
  height:10px;
  background:#ff0000;
  border-radius:50%;
}

.timeline-more{
  max-height:0;
  overflow:hidden;
  transition:max-height 0.6s ease;
}

/* BUTTON */
.read-more-btn{
  margin-top:15px;
}


.skills, .services, .portfolio{
  padding:80px 10%;
  text-align:center;
}

.core-expertise .expertise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  padding: 0 20px;
}

.core-expertise .expertise-card {
  background: #02022c;
  border: 1px solid #f80303;
  border-radius: 12px;
  padding: 20px 18px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.core-expertise .expertise-card h3 {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
  color: #fff;
}
.core-expertise h2 {
  text-align: center;
}

/* Hover effect */
.core-expertise .expertise-card:hover {
  background: #900a0a;
  border-color: #ff0000;
  transform: translateY(-6px);
  box-shadow: 0 8px 25px rgba(27, 5, 5, 0.12);
}


/* CONTACT SECTION */
.contact {
  padding: 80px 50px;
  background: #011528;
  text-align: center;
}

.contact h2 {
  font-size: 2.5rem;
  margin-bottom: 50px;
  color: #333;
}

.contact span {
  color: #ff4c60;
}

.contact-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
}

/* Contact Cards */
.contact-card {
  background: #020a26;
  padding: 30px 25px;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  gap: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-width: 250px;
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.contact-icon {
  font-size: 2.5rem;
  color: #ff4c60;
}

.contact-details h4 {
  margin: 0 0 5px 0;
  color: #333;
}

.contact-details a {
  color: #555;
  text-decoration: none;
  font-size: 0.95rem;
}

.contact-details a:hover {
  color: #ff4c60;
  text-decoration: underline;
}

/* ===== SERVICES WITH IMAGES ===== */
.service-card{
  background:#1e293b;
  padding:20px;
  border-radius:15px;
  text-align:center;
  transition:0.4s;
}

.service-card img{
  width:100%;
  height:160px;
  object-fit:cover;
  border-radius:12px;
}

.service-card h3{
  margin-top:15px;
}

.service-card:hover{
  background: rgb(136, 7, 7);
  color:#000;
  transform:translateY(-10px);
  box-shadow:0 0 30px #900a0a;
}

/* ===== SKILLS PROGRESS BAR ===== */
.skill-card{
  background:#1e293b;
  padding:20px;
  border-radius:15px;
  transition:0.4s;
}

.skill-card h4{
  margin-bottom:10px;
}

.progress{
  width:50%;
  height:8px;
  background:#0f172a;
  border-radius:10px;
  overflow:hidden;
}

.progress span{
  height:100%;
  display:block;
  background:#ff0000;
  border-radius:10px;
}

.skill-card:hover{
  transform:translateY(-8px);
  box-shadow:0 0 25px #02191a;
}
/* ===== PROJECT CARDS WITH IMAGES ===== */
.project-card{
  background:#1e293b;
  border-radius:15px;
  overflow:hidden;
  transition:0.4s;
  text-align:center;
}

.project-card img{
  width:100%;
  height:180px;
  object-fit:cover;
}

.project-card h3{
  padding:15px;
  font-size:16px;
}

.project-card:hover{
  background:#900a0a;
  color:#000;
  transform:translateY(-10px);
  box-shadow:0 0 30px #900a0a;
}
/* HIRE ME POPUP */
.hire-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
}


.popup-content {
  background: #111;
  padding: 30px;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  text-align: center;
  color: #fff;
  animation: popupSlide 0.4s ease;
}

.popup-content h2 {
  color: #900a0a;
  margin-bottom: 15px;
}

.popup-content a {
  color: #900aoa;
  text-decoration: none;
}

.close-btn {
  position: absolute;
  right: 25px;
  top: 20px;
  font-size: 28px;
  cursor: pointer;
  color: #fff;
}

@keyframes popupSlide {
  from {
    transform: translateY(-40px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
/* CONTACT SECTION */
.contact {
  padding: 80px 50px;
  background: #071625;
  text-align: center;
}

.contact h2 {
  font-size: 2.5rem;
  margin-bottom: 50px;
  color: #ff0404;
}

.contact span {
  color: #fb021f;
}

.contact-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
}

/* Contact Card */
.contact-card {
  background: #02022c;
  padding: 30px 25px;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(209, 22, 22, 0.1);
  display: flex;
  align-items: center;
  gap: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-width: 250px;
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.contact-icon {
  font-size: 2.5rem;
  color: #900a0a;
}

.contact-details h4 {
  margin: 0 0 5px 0;
  color: #333;
}

.contact-details a {
  color: #555;
  text-decoration: none;
  font-size: 0.95rem;
}

.contact-details a:hover {
  color: #900a0a;
  text-decoration: underline;
}
/* HERO IMAGE SOFT GLOW */

.hero-image-frame {
    position: relative;
    border-radius: 50%;
    padding: 10px;
}

/* Glow effect */
.hero-image-frame::before {
    content: "";
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(255,76,96,0.35),
        transparent 70%
    );
    z-index: -1;
    filter: blur(18px);
}

/* Image styling */
.hero-image-frame img {
    width: 320px;
    height: 320px;
    object-fit: cover;
    border-radius: 50%;
    background: #fff;
}
.hero-image-frame:hover::before {
    filter: blur(24px);
    opacity: 0.8;
    transition: all 0.3s ease;
}
/* =============================== */
/* MOBILE SCALE WITHOUT DESKTOP   */
/* =============================== */
img {
  max-width: 100%;
  height: auto;
}

.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}
.hero-image-frame {
  width: 300px;
  height: 300px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
@media (max-width: 768px) {

  header {
    padding: 15px 5%;
  }

  .hero {
    padding: 70px 5%;
  }

  .hero-image-frame {
    width: 220px;
    height: 220px;
  }

  .hero-text h1 {
    font-size: 28px;
  }

  .hero-text h3 {
    font-size: 16px;
  }
}
@media (max-width: 480px) {

  header {
    flex-direction: column;
    gap: 10px;
  }

  nav a {
    margin-left: 10px;
    font-size: 14px;
  }

  .hero {
    padding: 50px 5%;
  }

  .hero-image-frame {
    width: 160px;
    height: 160px;
  }

  .hero-text h1 {
    font-size: 22px;
  }

  .hero-text h3 {
    font-size: 14px;
  }

  .hero-text p {
    font-size: 13px;
  }

  .btn {
    padding: 10px 22px;
    font-size: 14px;
  }
}
.skills-grid,
.service-box,
.portfolio-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}


.project-card h3 {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
  color: #080332; /* Description color */
}

.project-title {
  font-weight: 700;
  color: #f30505; /* Only title color */
}

/* Make sure description remains normal color */
.project-desc {
  font-size: 14px;
  font-weight: 400;
  color: #faf7f7; /* Same normal color */
}


.services {
  padding: 60px 0;
  text-align: center;
}

.services h2 {
  font-size: 34px;
  margin-bottom: 30px;
}

.services h2 span {
  color: #f30808;
}

.service-box {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 0 20px;
}



.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); /* wider cards */
  gap: 20px;
  padding: 0 20px;
}

.project-card {
  background: #02022c;
  border: 1px solid #f80303;
  border-radius: 12px;
  padding: 20px 18px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-height: 150px; /* reduced height */
  display: flex;
  align-items: flex-start; /* top aligned */
  justify-content: center;
}

.project-card h3 {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
  color: #333;
}



/* Services Grid */
.services .service-box {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  padding: 0 20px;
}

/* Services Cards */
.services .service-card {
  background: #02022c;
  border: 1px solid #f80303;
  border-radius: 12px;
  padding: 20px 18px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.services .service-card h3 {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
  color: #fff; /* white text */
}

.services .service-card:hover {
  background: #900a0a;   /* Slightly lighter dark color */
  border-color: #ff0000; /* Brighter red */
  transform: translateY(-6px);
  box-shadow: 0 8px 25px rgba(27, 5, 5, 0.12);
}



/* Core Expertise Grid */
.core-expertise .expertise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  padding: 0 20px;
}





/* Contact Cards Grid */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  padding: 0 20px;
  margin-top: 30px;
}

/* Contact Card */
.contact-card {
  background: #02022c;
  border: 1px solid #f80303;
  border-radius: 12px;
  padding: 30px 20px;
  text-align: center;
  box-shadow: 0 4px 18px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  cursor: pointer;
}

/* Title */
.contact-card h3 {
  font-size: 20px;
  font-weight: 600;
  color: #900a0a; /* accent color */
  margin-bottom: 10px;
}

/* Text */
.contact-card p {
  font-size: 16px;
  color: #ffffff;
}

/* Contact Cards Text Color */
.contact-card h3,
.contact-card p,
.contact-card a {
  color: #ffffff;
}

/* Hover Effect */
.contact-card:hover {
  background: #500a03;
  border-color: #ff0000;
  transform: translateY(-6px);
  box-shadow: 0 10px 28px rgba(255, 0, 0, 0.15);
}



/* Hire Me Popup Text Color */
.hire-popup,
.hire-popup h1,
.hire-popup h2,
.hire-popup h3,
.hire-popup p,
.hire-popup label,
.hire-popup span,
.hire-popup a {
  color: #ffffff;
}
