@import url('https://fonts.googleapis.com/css2?family=Petit+Formal+Script&family=Pinyon+Script&family=Playball&family=Seaweed+Script&display=swap');
:root{
  --navbar-bg:linear-gradient(45deg, #b15213, #969d8e, #50a3a4);
  --hero-bg: linear-gradient(45deg, #63483d, #50a3a4, #b15213, #dddad8);
  --white-color: #fff;
  --hero-circle: rgba(204, 204, 213, 0.244);
  --custom-about: #f9f9f9;
  --about-heading: rgb(177, 82, 19);
  --decorative-circle: rgb(80, 163, 164, .6);
  --services-section: rgba(192, 184, 190, 0.2);
  --service-heading: linear-gradient(
    145deg,
    rgb(80, 163, 164, .8),
    rgba(212, 86, 23, 0.7),
    rgb(177, 82, 19, .6),
    rgba(171, 170, 177, 0.9)
  );
  --service-card-hover: rgba(255, 255, 255, 0.9) ;
  --overlay:rgba(201, 114, 71, 0.2);
  --sub-title: rgb(80, 163, 164);
  --custom-btn: linear-gradient(
    135deg,
    rgb(80, 163, 164),
    rgba(75, 69, 69, 0.404)
  );
  --custom-btn-hover: rgba(194, 98, 25, 0.6);
  --contact-box: linear-gradient(
    -135deg, 
     rgb(213, 122, 62),
     rgb(140, 131, 131),
     rgb(80, 163, 164)) ;
}
/* General styling for navbar remains the same */
.navbar {
  background: var(--navbar-bg);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  padding: 1rem 0;
  overflow: visible !important;
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1020 !important;
  transition: background-color 0.3s ease-in-out;
}

.navbar-brand{
  display: flex;
  flex-direction: row;
  gap: 2px;
}
#logo{
  color: white;
  font-size: 25px;
}
svg {
  background-color: var(--white-color);
  border-radius: 50%;
}
/* Nav links styling */
.navbar-nav .nav-link {
  margin-left: 2rem;
  font-size: 1.2rem;
  color: var(--white-color);
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  transition: color 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.navbar-nav .nav-link:hover {
 text-align: center;
  width: 80px;
  font-size: 1rem;
  border-radius: 10px;
  color:var(--sub-title);
  background-color: var(--white-color);
  transform: scale(1.1);
}

/* Navbar toggler button */
.navbar-toggler {
  background-color: transparent;
  padding: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="30" height="30" viewBox="0 0 30 30"%3E%3Cpath fill="none" stroke="%23333" stroke-width="2" d="M5 7h20M5 15h20M5 23h20"%3E%3C/path%3E%3C/svg%3E');
  background-size: 100% 100%;
}

.navbar-toggler:hover {
  background-color: rgba(0, 123, 255, 0.1);
}

.navbar-toggler.collapsed {
  background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="30" height="30" viewBox="0 0 30 30"%3E%3Cpath fill="none" stroke="%23333" stroke-width="2" d="M5 7l20 20M5 23l20-20"%3E%3C/path%3E%3C/svg%3E');
}


/* Hero Section */
.hero-section {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
  color: var(--white-color);
  background: var(--hero-bg);
  background-size: 400% 400%;
  animation: gradientShift 10s ease infinite;
  position: relative;
  overflow: hidden;
}
.hero-section .row.container {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
}

.hero-section img {
  width: 100%;
  max-width: 500px;
  border-radius: 15px;
  border: 2px solid var(--white-color);
  box-shadow: 0 8px 10px rgba(68, 64, 64, 0.5);
}

.hero-section h1 {
  font-size: 2rem;
  font-weight: bold;
  text-align: center;
  border-radius: 5px;
  padding: 1.2rem;
  background-color: var(--hero-circle);
  font-family: 'Courier New', monospace; 
  display: inline-block; 
  white-space: nowrap; 
  overflow: hidden; 
  border-right: 2px solid none; 
  min-width: 150px;
  animation: typing 3s steps(20, end) forwards, blink-caret 0.75s step-end infinite;
}

/* Keyframe for typing animation */
@keyframes typing {
  from {
    width: 0; 
  }
  to {
    width: 100%; 
  }
}

/* Keyframe for cursor blinking effect */
@keyframes blink-caret {
  50% {
    border-color: transparent;
  }
}

.hero-section p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.hero-section .circle,
.hero-section .circle-2 {
  position: absolute;
  border-radius: 50%;
  background: var(--hero-circle);
  width: 200px;
  height: 200px;
  bottom: -100px;
}

.hero-section .circle {
  left: -100px;
}

.hero-section .circle-2 {
  right: -100px;
}

 /* Hero Section buttons */
.hero-section .d-flex {
  gap: 1rem; 
}

.hero-section .btn {
  position: relative;
  z-index: 2;
  width: 80px;
  flex-grow: 1; 
  font-size: 1.2rem; 
  font-weight: 600;
  text-align: center; 
  display: inline-flex; 
  justify-content: center; 
  align-items: center; 
  border-radius: 5px;
  color: var(--sub-title);
  background-color: var(--white-color);
  transition: background-color 0.3s ease, transform 0.2s ease; 
}

/*not hover work*/
.hero-section .btn:hover {
  background-color: rgba(54, 54, 56, 0.1); 
  color: var(--white-color);
  transform: translateY(-5px); 
}

.hero-section .btn i {
  margin-right: 10px;
}

@media (max-width: 768px) {
  .hero-section {
    margin-top: 85px;
    height: auto; 
    padding: 1.5rem; 
  }
  .hero-section img{
    max-width: 400px;
  }
  .hero-section h1 {
    font-size: 1.5rem; 
    margin-top: 15px;
  }
  .hero-section p{
    font-size: 1.3rem;
  }
  .hero-section .btn {
    font-size: 1rem; 
    padding: .6rem .5rem;
  }
}
@media (max-width: 480px) {
  .hero-section {
    height: auto; 
    padding: 1rem; 
  }
  .hero-section p{
    font-size: 1.3rem;
  }
  .hero-section h1 {
    margin-top: 15px;
    white-space: wrap;
  }
  .hero-section {
    animation: gradientShift 10s ease infinite;
  }
}

/* Animated Dots */
.dots {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
/* Dots and circles */
.dots span {
  position: absolute;
  width: 10px;
  height: 10px;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  animation: moveDots 10s linear infinite;
}

/* Random Dots Positioning */
.dots span:nth-child(1) { top: 10%; left: 20%; animation-duration: 8s; }
.dots span:nth-child(2) { top: 30%; left: 40%; animation-duration: 6s; }
.dots span:nth-child(3) { top: 50%; left: 70%; animation-duration: 9s; }
.dots span:nth-child(4) { top: 80%; left: 10%; animation-duration: 7s; }
.dots span:nth-child(5) { top: 20%; left: 60%; animation-duration: 11s; }
.dots span:nth-child(6) { top: 70%; left: 50%; animation-duration: 10s; }
.dots span:nth-child(7) { top: 40%; left: 30%; animation-duration: 5s; }
.dots span:nth-child(8) { top: 60%; left: 80%; animation-duration: 12s; }

/* Dots Movement Animation */
@keyframes moveDots {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    transform: translateY(-100vh);
    opacity: 0;
  }
}
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
/*About Section*/
/* General Section Styles */
.custom-about {
  background-color: var(--custom-about);
  position: relative;
  overflow: hidden;
  padding: 3rem 1rem;
}

/* Text Content Styles */
.about-heading {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 2rem;
  color: var(--about-heading);
  margin-bottom: 10px;
  text-align: center;
}

.about-divider {
  width: 10%; 
  min-width: 60px; 
  max-width: 130px; 
  height: 5px;
  background: var(--sub-title);
  margin: 10px auto 20px auto;
  border-radius: 10px;
}

.about-description {
  font-family: 'Roboto', sans-serif;
  font-size: 1.3rem;
  text-align: center;
  line-height: 1.8;
  color: #555;
  max-width: 700px;
  margin: 0 auto;
}

.highlight {
  color: rgba(10, 125, 117, 0.754);
}

.highlight-pink {
  color: rgba(149, 67, 7, 0.9);
}
.skills-heading{
text-align: center;
color: var(--about-heading);
}

.skills-icons {
  display: flex; 
  flex-wrap: wrap; 
  justify-content: center;
  align-items: center; 
}

.skill-item {
  text-align: center; 
  margin: 10px; 
}

.skill-item i {
  display: block; 
  margin-bottom: 5px;
}
/* Image Styles */
.about-image img {
  width: 100%;
  max-width: 450px;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Decorative Elements */
.decorative-circle {
  position: absolute;
  border-radius: 50%;
}

.decorative-circle-top {
  top: -100px;
  left: -100px;
  width: 200px;
  height: 200px;
  background: var(--decorative-circle);
}

.decorative-circle-bottom {
  bottom: -80px;
  right: -80px;
  width: 250px;
  height: 250px;
  background: var(--decorative-circle);
}

/* Responsive Design */
@media (max-width: 768px) {
  .about-image{
    max-width: 350px;
  }
  .about-text {
    margin-left: 0;
  }
  .about-description{
    font-size: 1.2rem;
  }
}
@media (max-width: 480px){
.about-description{
  font-size: 1.3rem;
}
}

/* Services Section */
.services-section {
  background-color:var(--services-section);
  padding: 4rem 1rem;
}

.services-section h2 {
  font-size: 2rem;
  font-weight: bold;
  color: var(--white-color);
  background: var(--service-heading);
  padding: 5px;
  border-radius: 10px;
  text-align: center;
  margin-bottom: 2rem;
}
.service-card {
  position: relative;
  overflow: hidden;
  background-color: var(--white-color);
  border-left: 3px solid var(--sub-title);
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
  margin-bottom: 2rem;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  background-color: var(--service-card-hover);
}

.service-icon {
  font-size: 2rem;
  color: #ccc;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.service-card h5 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--sub-title);
  position: relative;
  z-index: 1;
}

.service-card p {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

/* Overlay for the Service Card */
.service-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--overlay); 
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  z-index: 2;
}

.service-card:hover .service-card-overlay {
  opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
  .services-section h2 {
    font-size: 2rem;
  }
  .service-card {
    margin-bottom: 20px;
  }
  .service-card h5{
    font-size: 1.5rem;
  }
  .service-card p{
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .service-card p {
    font-size: 1.3rem;
  }
}

/* Project Section */
.project-card .card-text {
  position: relative;
  line-height: 1.5;
}

/* Heading Styling */
#portfolio h2 {
  font-weight: bold;
  color: var(--white-color);
  background: var(--service-heading);
  padding: 5px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  animation: fadeInUp 1.5s ease-out;
}
.card-title{
  font-weight: 600;
  color: var(--sub-title)!important;
  text-align: center;
}
.card-text{
  text-align: center;
  color: #333;

}
/* Project card styling */
.project-card {
  transform: translateY(30px);
  transition: transform 0.6s ease, opacity 0.6s ease;
  animation: fadeInUp 1s ease-out forwards;
  height: auto;
  padding: 15px;
  border-radius: 10px;
  background: #fff;
}

.project-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
}

.project-card p {
  width: 100%;
  height: auto;
  color: #555;
  min-height: 150px;
  margin-bottom: 10px;
}

.project-card.visible {
  transform: translateY(0);
}

/* Button styling */
.project-card .btn {
  display: inline-block;
  margin-top: 10px;
  font-weight: 600;
  border-radius: 20px;
  width: 75%;
  transition: all 0.3s ease;
  color: var(--sub-title);
  border: 2px solid var(--about-heading);
  padding: 8px 12px;
  text-align: center;
}

.project-card .btn:hover {
  background: var(--navbar-bg);
  border: none;
  color: white;
  transform: scale(0.95);
}

.project-card .btn:active {
  background-color: var(--navbar-hover);
}

/* Fade-in animation */
@keyframes fadeInUp {
  0% {
    transform: translateY(30px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Hover effect on cards */
.project-card:hover {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  transform: translateY(-5px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Image scaling on hover */
.project-card .card-img-top {
  transition: transform 0.3s ease-in-out;
}

.project-card:hover .card-img-top {
  transform: scale(0.95);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .card-title {
    font-size: 1.3rem;
  }
  .project-card .btn {
    font-size: 1rem;
  }
  .project-card p{
    height: auto;
    min-height: 80px;
  }
}

@media (max-width: 480px) {
  .card-title {
    font-size: 1.5rem;
  }
  .card-text {
    font-size: 1.2rem;
    color: #555;
  }
  .project-card .btn {
    font-size: 1.3rem;
  }
  .project-card p{
    min-height: auto;
  }
}

/* Contact Section Styles */
.contact-section {
  background-color:var(--services-section);
}

/* Title and Subtitle */
.section-title {
  font-size: 1.8rem;
  font-weight: bold;
  color: #fff;
  margin-bottom: 2rem;
  background: var(--service-heading);
}

.section-subtitle {
  font-size: 1.1rem;
  color: #777;
  margin-bottom: 4rem;
  opacity: 0;
  animation: fadeIn 1s ease-out forwards;
}

/* Contact Info Box */
.contact-info-box {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  background:var(--contact-box) ;
  padding: 1rem;
  border-radius: 15px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  animation: fadeInUp 1s ease-out forwards; animation: fadeInUp 1s ease-out forwards;
}
.section-title{
background-color: var(--sub-title);
color: var(--white-color);
font-size: 2rem;
padding: 5px;
border-radius: 10px;
margin-top: 10px;
}

.section-subtitle{
  color: #333;
  margin-bottom: 15px;
}
.contact-info {
  text-align: center;
  flex: 1;
  min-width: 120px;
}

.contact-info i {
  font-size: 2.5rem;
  color: var(--white-color);
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

.contact-info h5 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white-color);
}

.contact-info p {
  font-size: 1rem;
  color: var(--white-color);
}

.contact-info p a{
  font-size: 1rem;
  color: var(--white-color);
}

.contact-info:hover i {
  transform: scale(1.1);
  color: rgb(174, 171, 171);
}

/* Form Styling */
form {
  background: var(--white-color);
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  padding: 3rem;
}

.form-label{
  font-size: 1.2rem;
  color: var(--sub-title);
}
form .form-control {
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  transition: all 0.3s ease;
}

form .form-control:focus {
  border-color: #28800e;
  box-shadow: 0 0 5px rgba(13, 4, 112, 0.5);
}

form .btn-gradient {
  background: var(--custom-btn);
  color: var(--white-color);
  border: none;
  border-radius: 10px;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: bold;
  transition: all 0.3s ease;
}

form .btn-gradient:hover {
  background: var(--custom-btn-hover);
  color: var(--white-color);
  transform: translateY(-3px);
}

/* Animations */
@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Media Queries for Responsiveness */

/* Tablets and smaller desktops */
@media (max-width: 1024px) {
  .contact-info-box {
    flex-direction: column;
    gap: 20px;
  }

  .contact-info {
    max-width: none;
  }

  form {
    padding: 2rem;
  }

  .section-subtitle {
    font-size: 1.1rem;
  }

  .contact-info i {
    font-size: 2rem;
  }

  .contact-info h5 {
    font-size: 1rem;
  }

  .contact-info p {
    font-size: 0.9rem;
  }
}
/* Large Screens (lg) */
@media (max-width: 786px) {
  .contact-info-box {
    flex-direction: row;
  }
  .section-subtitle{
    font-size: 1.2rem;
  }
  .contact-info h5{
    font-size: 1rem;
  }
  .contact-info p{
    font-size: 1rem;
  }
  .form-label{
    font-size: 1.3rem;
  }
  .form-control{
    font-size: 1rem !important;
  }
}
/* Smartphones and smaller screens */
@media (max-width: 480px) {
  .contact-info-box {
    flex-direction: column;
    gap: 10px;
  }
.section-subtitle{
  font-size: 1.3rem;
}
  .contact-info {
    text-align: center;
    max-width: 100%;
  }

  .contact-info i {
    font-size: 1.8rem;
  }

  .contact-info h5 {
    font-size: 1.5rem;
  }

  .contact-info p {
    font-size: 1.3rem;
  }
  .contact-info p a{
    font-size: 1.3rem;
  }
  form {
    padding: 1.5rem;
  }
 .form-label{
  font-size: 1.5rem;
 }
 .form-control{
  font-size: 1.2rem !important;
 }
  .btn-gradient {
    width: 100%;
    font-size: 1.5rem !important;
  }
}

.footer {
  background: var(--navbar-bg);
  color: var(--white-color);
  padding: 10px 0;
}
.footer .social-icons a {
  color: var(--white-color);
  margin: 0 10px;
  font-size: 1.5rem;
  text-decoration: none;
  display: inline-block;
  transition: transform 0.6s ease, color 0.3s ease;
}
.footer .social-icons a:hover {
  transform: rotate(360deg);
}
.footer .brand {
  font-size: 1.3rem;
  font-weight: bold;
}
.footer-links a {
  color: #fff;
  text-decoration: none;
  margin: 0 10px;
}
.footer-links a:hover {
  text-decoration: underline;
}

@media(max-width:786px){
  .footer .brand{
    font-size: 1.5rem;
  }
}