/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Montserrat:wght@700;800&display=swap');

/* CSS Variables */
:root {
  /* Colors */
  --primary-color: #6c63ff;
  --secondary-color: #4d44db;
  --accent-color: #ff6584;
  --dark-color: #2a2a2a;
  --light-color: #f8f9fa;
  --gray-color: #6c757d;
  --white-color: #ffffff;
  --black-color: #000000;
  
  /* Fonts */
  --primary-font: 'Poppins', sans-serif;
  --secondary-font: 'Montserrat', sans-serif;
  
  /* Spacing */
  --section-padding: 100px;
  
  /* Box Shadow */
  --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --box-shadow-hover: 0 10px 25px rgba(0, 0, 0, 0.15);
  
  /* Transition */
  --transition: all 0.3s ease;
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--primary-font);
  color: var(--dark-color);
  background-color: var(--white-color);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--secondary-font);
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark-color);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: var(--section-padding) 0;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.section-title span {
  color: var(--primary-color);
}

.section-subtitle {
  font-size: 1rem;
  color: var(--gray-color);
  margin-bottom: 40px;
}

.section-text {
  font-size: 1rem;
  color: var(--gray-color);
  margin-bottom: 20px;
}

.btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--white-color);
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 500;
  text-transform: capitalize;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn:hover {
  background-color: var(--secondary-color);
  color: var(--white-color);
  transform: translateY(-3px);
  box-shadow: var(--box-shadow-hover);
}

.secondary-btn {
  background-color: transparent;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

.secondary-btn:hover {
  background-color: var(--primary-color);
  color: var(--white-color);
}

/* Preloader */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--white-color);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.loader {
  width: 50px;
  height: 50px;
  border: 5px solid var(--light-color);
  border-top: 5px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--white-color);
  box-shadow: var(--box-shadow);
  z-index: 999;
  transition: var(--transition);
}

.header.scrolled {
  padding: 15px 0;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
}

.logo {
  font-family: var(--secondary-font);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--dark-color);
}

.logo span {
  color: var(--primary-color);
}

.navbar {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  margin-right: 30px;
}

.nav-link {
  padding: 10px 15px;
  font-weight: 500;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: var(--primary-color);
}

.hire-me-btn {
  padding: 10px 25px;
}

.mobile-menu-btn {
  font-size: 1.5rem;
  cursor: pointer;
  display: none;
}

/* Hero Section */
.hero {
  padding-top: 120px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-color: var(--light-color);
}

.hero .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-content {
  flex: 1;
  padding-right: 30px;
}

.hero-image {
  flex: 1;
  position: relative;
}

.subtitle {
  font-size: 1.2rem;
  color: var(--gray-color);
  margin-bottom: 15px;
}

.title {
  font-size: 3.5rem;
  margin-bottom: 20px;
  line-height: 1.2;
}

.title span {
  color: var(--primary-color);
}

.hero-btns {
  display: flex;
  gap: 20px;
  margin-top: 30px;
}

.image-box {
  position: relative;
  width: 400px;
  height: 500px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.image-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--primary-color);
  opacity: 0.1;
  z-index: 1;
}

.image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.social-links {
  position: absolute;
  bottom: 30px;
  left: 30px;
  display: flex;
  gap: 15px;
  z-index: 2;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--white-color);
  border-radius: 50%;
  color: var(--primary-color);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.social-links a:hover {
  background-color: var(--primary-color);
  color: var(--white-color);
  transform: translateY(-5px);
}

/* About Section */
.about .container {
  display: flex;
  align-items: center;
  gap: 50px;
}

.about-image {
  flex: 1;
}

.about-image img {
  border-radius: 20px;
  box-shadow: var(--box-shadow);
}

.about-content {
  flex: 1;
}

.about-details {
  display: flex;
  gap: 30px;
  margin: 30px 0;
}

.detail-item {
  text-align: center;
}

.detail-item h3 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 5px;
}

.detail-item p {
  font-size: 0.9rem;
  color: var(--gray-color);
}

.skills {
  margin: 30px 0;
}

.skills h3 {
  font-size: 1.2rem;
  margin-bottom: 15px;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-tags span {
  background-color: var(--light-color);
  color: var(--dark-color);
  padding: 5px 15px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
}

.download-cv {
  margin-top: 20px;
}

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.service-card {
  background-color: var(--white-color);
  padding: 30px;
  border-radius: 10px;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  text-align: center;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--box-shadow-hover);
}

.service-icon {
  width: 70px;
  height: 70px;
  background-color: rgba(108, 99, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--primary-color);
  font-size: 1.5rem;
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--gray-color);
  margin-bottom: 20px;
}

.read-more {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--primary-color);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.read-more i {
  font-size: 0.8rem;
  transition: var(--transition);
}

.read-more:hover i {
  transform: translateX(5px);
}

/* Portfolio Section */
.portfolio-filter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 40px;
}

.filter-btn {
  background-color: transparent;
  color: var(--dark-color);
  padding: 8px 20px;
  border-radius: 50px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--gray-color);
  transition: var(--transition);
}

.filter-btn.active,
.filter-btn:hover {
  background-color: var(--primary-color);
  color: var(--white-color);
  border-color: var(--primary-color);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.portfolio-item {
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.portfolio-img {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

.portfolio-img img {
  width: 100%;
  /*height: 250px;*/
  object-fit: cover;
  transition: var(--transition);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(108, 99, 255, 0.9);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: var(--transition);
  padding: 20px;
  text-align: center;
  color: var(--white-color);
}

.portfolio-overlay h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  transform: translateY(20px);
  transition: var(--transition);
}

.portfolio-overlay p {
  font-size: 0.9rem;
  margin-bottom: 15px;
  transform: translateY(20px);
  transition: var(--transition);
  transition-delay: 0.1s;
}

.view-project {
  background-color: var(--white-color);
  color: var(--primary-color);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  transform: translateY(20px);
  transition: var(--transition);
  transition-delay: 0.2s;
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-item:hover .portfolio-overlay h3,
.portfolio-item:hover .portfolio-overlay p,
.portfolio-item:hover .view-project {
  transform: translateY(0);
}

.portfolio-item:hover .portfolio-img img {
  transform: scale(1.1);
}

.view-more {
  text-align: center;
  margin-top: 50px;
}

/* Testimonials Section */
.testimonials {
  background-color: var(--light-color);
}

.testimonials-slider {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  padding: 20px 0;
  scroll-snap-type: x mandatory;
}

.testimonial-card {
  min-width: 350px;
  background-color: var(--white-color);
  padding: 30px;
  border-radius: 10px;
  box-shadow: var(--box-shadow);
  scroll-snap-align: start;
}

.client-info {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.client-img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 15px;
}

.client-info h4 {
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.client-info p {
  font-size: 0.8rem;
  color: var(--gray-color);
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 20px;
}

.rating {
  color: #ffc107;
}

/* Contact Section */
.contact .container {
  display: flex;
  gap: 50px;
}

.contact-content {
  flex: 1;
}

.contact-form {
  flex: 1;
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 30px 0;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
  background-color: var(--light-color);
  border-radius: 10px;
  transition: var(--transition);
}

.contact-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow);
}

.contact-icon {
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: var(--white-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.contact-details h3 {
  font-size: 1rem;
  margin-bottom: 5px;
}

.contact-details a,
.contact-details p {
  font-size: 0.9rem;
  color: var(--gray-color);
}

.contact-details a:hover {
  color: var(--primary-color);
}

.form-group {
  margin-bottom: 20px;
}

.form-control {
  width: 100%;
  padding: 12px 20px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-family: var(--primary-font);
  font-size: 0.9rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.2);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

.submit-btn {
  width: 100%;
}

/* Footer */
.footer {
  background-color: var(--dark-color);
  color: var(--white-color);
  padding: 80px 0 0;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 60px;
}

.footer-col p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  margin: 15px 0;
}

.footer-col h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--primary-color);
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer a{
    color:rgba(255, 255, 255, 0.7);;
}

.footer h3{
    color:rgba(255, 255, 255, 0.7);;
}

.footer-col ul li a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

.newsletter-form {
  display: flex;
  margin-top: 20px;
}

.newsletter-form input {
  flex: 1;
  padding: 10px 15px;
  border: none;
  border-radius: 5px 0 0 5px;
  font-size: 0.9rem;
}

.newsletter-form button {
  background-color: var(--primary-color);
  color: var(--white-color);
  border: none;
  padding: 0 15px;
  border-radius: 0 5px 5px 0;
  cursor: pointer;
  transition: var(--transition);
}

.newsletter-form button:hover {
  background-color: var(--secondary-color);
}

.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
}

.footer-bottom a {
  color: var(--primary-color);
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: var(--white-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--box-shadow);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--secondary-color);
  transform: translateY(-5px);
}

/* Responsive Styles */
@media (max-width: 992px) {
  :root {
    --section-padding: 80px;
  }
  
  .hero .container,
  .about .container,
  .contact .container {
    flex-direction: column;
    gap: 40px;
  }
  
  .hero-content,
  .about-content,
  .contact-content {
    padding-right: 0;
  }
  
  .image-box {
    width: 350px;
    height: 450px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 60px;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .title {
    font-size: 2.5rem;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .navbar {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: var(--white-color);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
    z-index: 998;
  }
  
  .navbar.active {
    left: 0;
  }
  
  .nav-list {
    flex-direction: column;
    margin-right: 0;
    margin-bottom: 30px;
    text-align: center;
  }
  
  .nav-link {
    padding: 15px;
    display: block;
  }
  
  .hire-me-btn {
    display: none;
  }
  
  .contact-info {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 576px) {
  :root {
    --section-padding: 50px;
  }
  
  .title {
    font-size: 2rem;
  }
  
  .hero-btns {
    flex-direction: column;
    gap: 15px;
  }
  
  .about-details {
    flex-direction: column;
    gap: 20px;
  }
  
  .image-box {
    width: 100%;
    height: 400px;
  }
  
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  
  .testimonial-card {
    min-width: 100%;
  }
}