*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html{
    font-size: 10px;
    font-family: 'Montserrat', sans-serif;
    scroll-behavior: smooth;
    
}

a{
    text-decoration: none;
}
.container{
    flex-direction:colum;    
    height: 95vh;
    width:100%;
    display: flex;
    align-items:center;
    justify-content:space-between;
    padding: 0 80px;
}

.image{
  display: flex;

}

.one h1{
    display: flex;
    font-size: 4rem;
    position: relative;
    color: transparent;
    animation: text_reveal .5s ease forwards;
    animation-delay: 1.5s;    
}
.one h1:nth-child(1){
    animation-delay: 1.5s;
}
.one h1:nth-child(2){
    animation-delay: 2.5s;
}
.one h1:nth-child(3){
    animation-delay: 3.5s;
}

.one h1 span{
    position: absolute;
    top: 0%;
    left: 0px;
    height: 100%;
    width: 0;
    background-color: plum;
    animation: text_reveal_box 1s ease;
    animation-delay: 1s;
}

.one h1:nth-child(1) span{
    animation-delay: 1s;
}

.one h1:nth-child(2) span{
    animation-delay: 2s;
}

.one h1:nth-child(3) span{
    animation-delay: 3s;
}

.one .cta{
    display: inline-block;
    padding: 10px 30px;
    color: plum;
    background-color:transparent;
    border: 2px solid rgb(0,0,0);
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    margin-top: 30px;
    transition: 0.3s ease;
    transition-property: background-color, color;
}

.one .cta:hover{
    color: white;
    background-color: black;
}

@keyframes text_reveal_box{
    50%{
        width: 100%;
        left: 0;
    }
    100%{
        width:0;
        left: 100%;
    }
}

@keyframes text_reveal {
    100%{
        color:black
    }
}

/* ========== Services Section ========== */
#services {
    padding: 80px 20px;
    background: #fff;
}
#services h2 {
    text-align: center;
    font-size: 3.4rem;
    margin-bottom: 50px;
    color: black;
    text-transform: uppercase;
    letter-spacing: 2px;
}
#services p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    font-size: 1.6rem;
    line-height: 1.8;
    color: #444;
}
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.card {
    padding: 35px 25px;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    border-top: 6px solid #f7931e;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.55);
}

.card * {
    position: relative;
    z-index: 1;
    color: #fff;
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

.card img {
    width: 70px;
    margin-bottom: 18px;
    filter: invert(1);
}

.card h3 {
    margin: 0 0 14px;
    font-size: 2rem;
    text-transform: uppercase;    
}
.card p {
    font-size: 1.5rem;
    line-height: 1.6;    
}
.card h3,
.card p {
    color: #fff !important;
}
/* Background images per card */
.card.webdev {
    background-image: url('https://images.unsplash.com/photo-1521737604893-d14cc237f11d?ixlib=rb-4.0.3&auto=format&fit=crop&w=900&q=80');
}
.card.programming {
    background-image: url('https://images.unsplash.com/photo-1519389950473-47ba0277781c?ixlib=rb-4.0.3&auto=format&fit=crop&w=900&q=80');
}
.card.itsupport {
    background-image: url('https://images.unsplash.com/photo-1593642532973-d31b6557fa68?ixlib=rb-4.0.3&auto=format&fit=crop&w=900&q=80');
}

/* ========== projects Section ========== */
#projects {
    padding: 30px;
    background: #fff;
}
#projects h1 {
    text-align: center;
    font-size: 3.4rem;
    margin-bottom: 50px;
    color: black;
    text-transform: uppercase;
    letter-spacing: 2px;
}
#projects p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    font-size: 1.6rem;
    line-height: 1.8;
    color: #444;
}
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.temp {
    padding: 35px 25px;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    border-top: 6px solid orange;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.temp::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.55);
}

.temp * {
    position: relative;
    z-index: 1;
    color: #fff;
}

.temp:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

.temp img {
    width: 70px;
    margin-bottom: 18px;
    filter: invert(1);
    border: none;
    outline: none;
}

.temp h3 {
    margin: 0 0 14px;
    font-size: 2rem;
    text-transform: uppercase;    
}
.temp p {
    font-size: 1.5rem;
    line-height: 1.6;    
}
.temp h3,
.temp p {
    color: #fff !important;
}
/* Background images per card */
.temp.bank{
    background-image: url('bank.jpeg');
}
.temp.Calculator {
    background-image: url('calculator.jpg');
}
.temp.School {
    background-image: url('school.webp');
}

/* ------------------- ABOUT SECTION (Light) ------------------- */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background: #fff;
  color: #000;
}

/* About Section */
.about {
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  padding: 80px 0;
}

.about-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 80px;
  width: 85%;
  max-width: 1100px;
}

/* Image box */
.about-img {
  position: relative;
  width: 320px;
  height: 320px;
}

.about-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 3px solid #ff4d00;
  border-radius: 6px;
  z-index: 2;
  position: relative;
}

.about-img::before {
  content: "";
  position: absolute;
  bottom: -20px;
  left: -20px;
  width: 100%;
  height: 100%;
  border: 3px solid #ff4d00;
  border-radius: 6px;
  z-index: 1;
}

/* Text box */
.about-text {
  flex: 1;
}

.about-text h2 {
  font-size: 3.4rem;
  letter-spacing: 1px;
  color: #000;
}

.about-text h2 span {
  color: #ff4d00;
}

.about-text h3 {
  font-size: 20px;
  font-weight: 500;
  color: #444;
  margin: 10px 0 20px;
}

.about-text p {
  font-size: 15px;
  color: #555;
  line-height: 1.7;
  max-width: 600px;
  margin-bottom: 30px;
}

/* Button */
.cv-btn {
  text-decoration: none;
  color: #ff4d00;
  border: 2px solid black;
  padding: 12px 30px;
  border-radius: 5px;
  font-weight: 600;
  transition: 0.3s;
}

.cv-btn:hover {
  background: black;
  color: #fff;
}

/* Responsive */
@media (max-width: 900px) {
  .about-container {
    flex-direction: column;
    text-align: center;
  }

  .about-img::before {
    bottom: -12px;
    left: -12px;
  }
}

/* ===== Navbar Section ===== */

nav {

  width: 100%;
  background-color: #cf8441; /* main orange */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 90px;
  border-bottom: 5px solid #cf8441; /* light orange stripe */
  position: fixed; /* ✅ navbar top pe fix ho jayegi */
  top: 0;
  left: 0;
  z-index: 1000;
}

.logo {
  font-size: 20px;
  font-weight: 600;
  color: #1d1d1d;
  letter-spacing: 1px;
}

.logo span {
  color: #ffffff;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 45px;
}

nav ul li a {
  text-decoration: none;
  color: #f8f6f2;
  font-size: 13px;
  letter-spacing: 1px;
  transition: 0.3s;
}

nav ul li a:hover {
  color: #1d1d1d;
}

@media (max-width: 768px) {
  nav {
    flex-direction: column;
    padding: 12px 20px;
    gap: 10px;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
}

   /*==== CONTACT====*/

#contact {
    margin: 5px;
    padding: 0px;
    background-color: white;
    text-align: center;
  }

  #contact h2 {
    font-size: 32px;
    color: #333;
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
  }

  .contact-container {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
  }

  .contact-box {
    background: white;
    width: 250px;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    text-align: center;
    transition: all 0.3s ease;
    margin-bottom: 150px;
  }

  .contact-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  }

  .contact-box img {
    width: 50px;
    margin-bottom: 10px;
  }

  .contact-box h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
  }

  .contact-box p {
    color: #555;
    line-height: 1.5;
    font-size: 14px;
  }

  /*====Foot====*/

  .footer { 
  background: linear-gradient(120deg, #007bff, #004080);
  color: white;
  text-align: center;
  padding: 20px;
  align-items: center;
  

  /* border-top-left-radius: 50px;
  border-top-right-radius: 50px; */
}

.footer h2 {
  font-size: 26px;
  margin-bottom: 5px;
}

.footer h2 span {
  color: black;
}

.footer p {
  font-size: 14px;
  opacity: 0.9;
}

.footer .social-icons {
  margin: 20px 0;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.footer .social-icons a {
  background: transparent;     /* ❌ White hataya, transparent kiya */
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #333;
  transition: 0.4s;
  box-shadow: none;            /* ❌ Shadow hataya */
  border-radius: 50%;          /* 🔘 Smooth round shape */
}

.footer .social-icons a:hover {
  transform: translateY(-6px);
  color: white;
}

.footer .social-icons a img {
  filter: grayscale(10);
  background: transparent;
  border-radius: 50%;
}

.footer .social-icons a img:hover {
  filter: grayscale(0);
}

.footer .social-icons a.facebook:hover {
  background: #1877f2;
}

.footer .social-icons a.instagram:hover {
  background: linear-gradient(45deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5);
}

.footer .social-icons a.github:hover {
  background: #24292e;
}

.footer .social-icons a.youtube:hover {
  background: #ff0000;
}

.footer .social-icons a.linkedin:hover {
  background: #0077b5;
}

.footer .copyright {
  font-size: 12px;
  margin-top: 10px;
  opacity: 0.7;
}

.nav-icon{
  display: none;  
}
@media(max-width:768px){
  .nav-list{
    display: none;
  }
  .nav-icon{
    display: flex;   
  }
}
.nav-icon button{
  background-color: transparent;  
}

.nav-icon button ul{
  box-shadow: inset;
}

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family:sans-serif;
}

.menu-btn {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.menu-btn span {
  width: 30px;
  height: 3px;
  background: black;
  border-radius: 3px;
}

/* hidden checkbox */
#menu-toggle {
  display: none;
}

/* sidebar menu */
.menu {
  position: fixed;
  top: 0;
  right: -250px;
  width: 250px;
  height: 100vh;
  background: #cf8441;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 25px;
  transition: 0.3s;
}

/* show when checked */
#menu-toggle:checked ~ .menu {
  right: 0;
}

.menu a {
  color: white;
  text-decoration: none;
  font-size: 1.3em;
}

.menu a:hover {
  color: #000;

}

/* ============ GLOBAL MEDIA QUERY ============ */
@media (max-width: 768px) {

  html {
    font-size: 8px; /* Smaller text size for mobile */
  }

  /* Parent container ko flex bana do */
.container {
    display: flex;
    justify-content: center; /* horizontal center */
    align-items: center;     /* vertical center */
    flex-direction: column;  /* agar multiple text lines hain */
    text-align: center;      /* text bhi center ho */
    width: 100%;             /* poori width le */
    margin: 0 auto;          /* horizontal centering */
    padding: 0 15px;         /* mobile spacing */
}

/* Mobile specific */
@media (max-width: 768px) {
    .container {
        text-align: center;
        padding: 0 10px;
    }
  }
  nav {
    flex-direction: column;
    padding: 10px 20px;
    gap: 10px;
  }

  nav ul {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }

  .about-container {
    flex-direction: column;
    text-align: center;
  }

  .about-img {
    width: 250px;
    height: 250px;
    margin-bottom: 0px;
  }

  .grid {
    grid-template-columns: 1fr; /* 1 card per row on mobile */
  }

  .card, .temp {
    padding: 20px;
    font-size: 1.2rem;
  }

  .contact-container {
    flex-direction: column;
    gap: 20px;
  }

  .contact-box {
    width: 80%;
    margin-bottom: 20px;
  }

  .footer {
    padding: 30px 10px;
    
  }

  .footer h2 {
    font-size: 20px;
  }

  .footer .social-icons {
    gap: 10px;
  }
}

/* For smaller screens (mobile view) */
@media (max-width: 768px) {
  .one {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center!important;
  }

  .one h1 {   
    text-align: center!important;
    font-size: 3rem; /* optional: thoda chhota text for mobile */
  }

  .cta {
    margin: 15px auto;
    display: inline-block;
  }

  .image img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
  }
}
