* {
  margin: 0;
  padding: 0;
  box-sizing: border-box; 
}

html {
  scroll-behavior: smooth; 
}

body {
  margin:0;
  padding:0;
  font-family: 'Open Sans', sans-serif;
  background-color: #fdfdfd; 
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

.header-list {
  margin: 15px 20px;
}

.div-list {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 0;
}

.ul-list {
  list-style: none;
  display: flex;
  gap: 3rem;
  background-color: rgba(255, 255, 255, 0.9); 
  backdrop-filter: blur(10px); 
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 10px 25px;
  border-radius: 25px;
}

.ul-list li {
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: 25px;
  transition: 0.3s;
}

.ul-list li a {
  font-family: "Montserrat", sans-serif;
  text-decoration: none;
  color: black;
}

.ul-list li.active {
  background-color: black;
  padding: 10px 15px;
}

.ul-list li.active a,
.ul-list li.active i {
  color: white;
}

/* --- Home Section --- */
.home {
  margin: 160px 200px;
}

.home-container {
  display: flex;
  gap: 6rem;
  align-items: center;
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 10px rgba(46, 204, 113, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(46, 204, 113, 0);
  }
}

.info-home h1 {
  font-size: 70px;
  font-family: "Raleway", sans-serif;
  margin-bottom: 20px;
}

.info-home h3 {
  font-size: 40px;
  font-family: "Playfair Display", serif;
  margin-bottom: 20px;
  min-height: 50px; 
}

.info-p {
  color: #222;
  font-family: "Roboto", sans-serif;
  padding-bottom: 20px;
  line-height: 1.6; 
}

.info-p p {
  padding-bottom: 15px; 
}

.info-p2 {
  display: flex;
  gap: 1rem;
  padding-bottom: 30px;
  flex-wrap: wrap; 
}

.info-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #f0f8ff; 
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 14px;
  color: #333;
  border: 1px solid #e0e8ef;
  transition: all 0.3s ease;
  cursor: default; 
}

.info-badge:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.info-badge .fa-location-dot {
  color: #007bff; 
}

.availability-dot {
  width: 10px;
  height: 10px;
  background-color: #2ecc71;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.btnn {
  display: flex;
  gap: 1rem;
  padding-bottom: 30px;
}

.btn-home1, .btn-home2 {
  border-radius: 10px;
  padding: 12px 20px; 
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
  text-decoration: none; 
  display: inline-flex; 
  align-items: center;
  gap: 8px;
}

.btn-home1 {
  background-color: #000000;
  color: rgb(255, 255, 255);
  border: none;
}

.btn-home2 {
  background-color: transparent;
  border: 2px solid black;
  color: #000;
}

.btn-home1:hover {
    background-color: #333;
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.btn-home2:hover{
    background-color: #000000;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

hr {
  width: 90%;
  border: 0;
  border-top: 1px solid #eee;
}

.hhr {
  padding-bottom: 30px;
}

.follow {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.follow ul {
  display: flex;
  gap: 2rem;
  font-size: 20px;
}

.follow ul li {
  list-style: none;
}

.follow ul a {
  text-decoration: none;
  color: #000000;
}

.follow ul a i {
  transition: transform 0.3s ease-in-out;
}

.follow ul a:hover i {
  transform: scale(1.2) rotate(10deg);
}

.home img {
  width: 400px;
  border-radius: 15px;
}

/* --- About Section --- */
.about {
    margin: 160px 200px;
}

.about p{
    padding-bottom: 20px;
    font-size: 16px;
    color: #555;
    line-height: 1.7;
}

.about .title h1 {
    font-family: "Raleway", sans-serif;
    font-size: 42px;
}

.about .title{
    padding-bottom: 20px;
}

.about .hrrr{
    width: 20%;
    margin-bottom: 40px;
    border-top: 2px solid #000;
}

.about-container{
    display: grid;
    grid-template-columns: 1.2fr 1fr; 
    gap: 4rem;
    align-items: flex-start;
}

.about-right img{
    width: 85%;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.about h2{
    padding-bottom: 25px;
    font-size: 28px;
    font-family: "Open Sans", sans-serif;
}

.card{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}

.c1{
    background-color: #f8f9ff;
    border: 1px solid #e0e8ef;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
}

.card-icon {
    font-size: 36px;
    margin-bottom: 15px;
    color: #474af0;
    transition: all 0.3s ease;
}

.c1 h3{
    padding-bottom: 10px;
    font-size: 18px;
}

.c1 p {
    font-size: 14px;
    line-height: 1.5;
    color: #666;
    padding: 0;
}

.c1:hover {
  transform: translateY(-8px);
  border-color: #474af0;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  cursor: pointer;
}

.c1:hover .card-icon {
    transform: scale(1.1);
}

/* --- Technical Skills Section (Full Width) --- */
.technical-skills {
    margin: 160px 200px;
    text-align: center;
}

.technical-skills p {
    color: rgb(50, 50, 50);
}

.technical-skills h1 {
    font-family: "Open Sans", sans-serif;
    padding-bottom: 10px;
}

.technical-skills hr {
    width: 10%;
    border-top: 2px solid #000;
    margin: 20px auto 40px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    text-align: left;
}

.skill-category {
    background: #fff;
    border: 1px solid #eee;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.skill-category h3 {
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
    color: #333;
    font-size: 18px;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    background-color: #f0f3ff;
    color: #474af0;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background-color: #474af0;
    color: #fff;
    transform: scale(1.05);
    cursor: default;
}

/* --- Project Section --- */
.project{
    margin: 160px 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.project p{
    padding-bottom: 20px;
    font-size: 14px;
    color: rgb(50, 50, 50);
}

.project h1{
    font-family: "Open Sans", sans-serif;
    padding-bottom: 10px;
}

.project hr{
    width: 10%;
    border-top: 2px solid #000; 
}

.info-pro{
    padding-top: 20px;
}

.info-pro p{
    padding-bottom: 10px;
}

.project-filters {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 30px;
  flex-wrap: wrap; 
}

.filter-btn {
  background: transparent;
  border: 1px solid #ccc;
  border-radius: 20px;
  padding: 8px 18px;
  cursor: pointer;
  font-family: "Montserrat", sans-serif;
  transition: all 0.3s ease;
}

.filter-btn.active,
.filter-btn:hover {
  background: #000;
  color: #fff;
  border-color: #000;
}

.projects-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  max-width: 1100px;
  margin: auto;
}

.project-card {
  background: #fff;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.project-card img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 15px;
}

.project-card h3 {
  color: #1e40af;
  margin-bottom: 8px;
}

.project-card p {
  color: #555;
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.skills {
  margin-bottom: 15px;
}

.skills a {
  display: inline-block;
  background: #e0e7ff;
  color: #1e3a8a;
  text-decoration: none;
  font-size: 0.8rem;
  padding: 5px 10px;
  border-radius: 6px;
  margin: 3px;
  transition: background 0.3s;
}

.skills a:hover {
  background: #c7d2fe;
}

.btns {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.btn {
  background: #1e40af;
  color: white;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 25px;
  font-size: 0.9rem;
  transition: 0.3s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn:hover {
  background: #2563eb;
  transform: translateY(-2px);
}

/* --- Services Section --- */
.services{
    margin: 160px 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.services p{
    padding-bottom: 20px;
    font-size: 13px;
    color: rgb(50, 50, 50);
}

.services h1{
    font-family: "Open Sans", sans-serif;
    padding-bottom: 10px;
}

.services hr{
    width: 10%;
    border-top: 2px solid #000;
}

.services-container {
  padding-top: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  max-width: 1100px;
  margin: auto;
}

.service-card {
  background: #fdfdff;
  border: 1px solid #f0f0f0;
  padding: 25px;
  border-radius: 16px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  text-align: center;
  position: relative; /* Crucial for positioning the spotlight */
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  background: radial-gradient(
    circle at var(--x, 50%) var(--y, 50%),
    rgba(71, 74, 240, 0.15),
    transparent 25%
  );
  opacity: 0; /* Hidden by default */
  transition: opacity 0.5s ease;
}

.service-card:hover::before {
  opacity: 1; /* Show spotlight on hover */
}

.service-card:hover {
  border-color: rgba(71, 74, 240, 0.3);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.service-card-content {
  position: relative; /* Ensures content is above the spotlight */
  z-index: 1;
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  transform: perspective(1000px)
             rotateX(var(--rotateX, 0))
             rotateY(var(--rotateY, 0));
}

.service-card-content img {
  width: 80px; 
  margin-bottom: 15px;
}

.service-card-content h3 {
  color: #1e40af;
  margin-bottom: 10px;
}

.service-card-content p {
  color: #555;
  font-size: 0.9rem;
}

/* --- UPDATED & FIXED Contact Section --- */
.contact-section {
    max-width: 1100px;
    margin: 160px auto;
    padding: 0 20px;
    text-align: center;
}

.contact-section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 40px;
    position: relative;
    font-family: "Raleway", sans-serif;
}

.contact-section h2::after {
    content: "";
    display: block;
    width: 50px;
    height: 3px;
    background-color: #3b44f6;
    margin: 8px auto 0;
    border-radius: 4px;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.contact-box {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    flex: 1 1 450px;
    text-align: left;
}

.contact-box h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.contact-box p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    color: #444;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-row {
    display: grid; /* Use Grid for robust columns */
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Open Sans', sans-serif;
    outline: none;
    transition: all 0.2s ease;
    background-color: #fff;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #3b44f6;
    box-shadow: 0 0 0 2px rgba(59, 68, 246, 0.1);
}

.contact-form button.btn-send {
    background-color: #3b44f6;
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    border-radius: 8px;
    padding: 0.9rem 1.2rem;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.2s ease;
}

.contact-form button.btn-send:hover {
    background-color: #2c36d9;
}

/* intl-tel-input Customization */
.iti {
    width: 100%;
}

.iti__flag-container, .iti__selected-flag {
    background-color: #fff !important;
    border: 1px solid #ddd !important;
    border-right: none !important;
    border-top-left-radius: 8px !important;
    border-bottom-left-radius: 8px !important;
    transition: background-color 0.2s ease;
}

.iti__selected-flag[style] {
    background-color: #fff !important;
}

.iti__selected-flag:hover {
    background-color: #f9f9f9 !important;
}

.iti__selected-dial-code {
    color: #111 !important;
    font-weight: 500;
}

.iti input[type="tel"] {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

.iti__country-list {
    border-radius: 12px !important;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12) !important;
    border: 1px solid #eee !important;
    background-color: #fff !important;
    overflow: hidden !important;
}

.iti__country {
    padding: 8px 12px !important;
    font-size: 0.95rem !important;
    color: #111 !important;
    transition: background-color 0.15s ease;
}

.iti__country:hover, .iti__highlight {
    background-color: #e0e7ff !important;
    color: #111 !important;
}

.iti__search-input {
    border-radius: 8px !important;
    border: 1px solid #ddd !important;
    padding: 6px 10px 6px 28px !important;
    font-size: 0.9rem !important;
    color: #111 !important;
    background-color: #fff !important;
    background-image: none !important;
}

.iti__search-input::placeholder {
    color: #888 !important;
}

.iti__search-input + .iti__search-icon {
    display: none !important;
}

/* --- Footer --- */
.footer {
  background-color: #000;
  color: #fff;
  padding: 40px 20px;
  text-align: center;
  overflow-x: hidden;
}

.footer-container {
  max-width: 1200px;
  margin: auto;
}

.footer-logo {
  font-family: 'Montserrat', sans-serif;
  font-size: 28px;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.footer-links li a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.footer-links li a:hover {
  color: #474af0;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 15px;
}

.footer-social a {
  color: #fff;
  font-size: 18px;
  transition: color 0.3s ease, transform 0.3s ease;
}

.footer-social a:hover {
  color: #474af0;
  transform: scale(1.1);
}

.footer-copy {
  font-size: 12px;
  color: #aaa;
}

/* --- Animations & Utilities --- */
.reveal {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 1s ease-out, transform 1s cubic-bezier(0.215, 0.610, 0.355, 1);
}

.active-reveal {
  opacity: 1;
  transform: translateY(0);
}


/* --- Loading Screen --- */
#loading-screen {
  position: fixed;
  top:0; left:0;
  width:100%; height:100%;
  background-color: #000;
  display:flex;
  justify-content:center;
  align-items:center;
  flex-direction:column;
  z-index:9999;
  overflow:hidden;
  color:#00f0ff;
  text-align:center;
}

.hidden {
  opacity: 0;
  transform: translateY(-200px);
}

.fall {
  animation: fall 0.9s forwards;
}

@keyframes fall {
  0% { opacity:0; transform: translateY(-200px); }
  60% { opacity:1; transform: translateY(20px); }
  100% { transform: translateY(0); }
}

.loading-content h1, .loading-content h2, .loading-content i {
  margin: 20px 0;
}

.sub-icons {
  display:flex;
  justify-content:center;
  gap: 25px;
  margin-bottom: 20px;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .home, .about, .project, .services, .technical-skills {
    margin: 120px 50px;
  }
  
  .contact-section {
    margin: 120px 50px;
  }

  .home-container {
    flex-direction: column;
    text-align: center;
  }
  
  .about-container, .skills-grid {
      grid-template-columns: 1fr;
  }

  .contact-container {
    flex-direction: column;
  }

  .home img, .about-right img {
    width: 100%;
    height: auto;
    margin-top: 20px;
  }

  .skills-grid {
      grid-template-columns: repeat(2, 1fr);
  }

  .ul-list {
    flex-wrap: wrap;
    gap: 1rem;
    padding: 8px 15px;
  }
}

@media (max-width: 768px) {
  header {
    display: none; 
  }

  .home, .about, .project, .services, .contact-section, .technical-skills {
    margin: 100px 20px;
  }
  
  .about-container, .skills-grid {
    grid-template-columns: 1fr; 
  }

  .home-container, .card, .contact-container {
    flex-direction: column;
    gap: 2rem;
  }
  
  .projects-container, .services-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .form-row {
      grid-template-columns: 1fr;
      gap: 0; /* Remove gap when stacked */
  }

  /* Add margin to bottom of stacked input */
  .form-row input:first-child {
      margin-bottom: 1rem;
  }

  .home img {
    width: 100%;
    max-width: 100%;
    height: auto;
  }
  
  .info-home h1 { font-size: 48px; }
  .info-home h3 { font-size: 28px; }
  
  .info-p2 {
      justify-content: center;
  }

  .btnn {
      flex-direction: column;
  }
  
  .btn-home1, .btn-home2, .btn, .btn-send {
    width: 100%;
    text-align: center;
    padding: 15px;
    justify-content: center;
  }

  .follow {
      justify-content: center;
  }

  .follow ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }

  .footer-links { 
    flex-direction: column;
    gap: 15px;
  }
}