@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  border: none;
  outline: none;
  scroll-behavior: smooth;
  font-family: "Poppins", sans-serif;
}

:root {
  --bg-color: #0f172a;           /* Slate dark */
  --second-bg-color: #1e293b;    /* Slate lighter */
  --text-color: #e2e8f0;         /* Soft white */
  --main-color: #3b82f6;         /* Modern blue */
  --accent-color: #06b6d4;       /* Cyan accent */
  --gradient: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
  --card-bg: rgba(255, 255, 255, 0.05);
  --border-color: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-track {
  background: var(--bg-color);
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-thumb {
  background: var(--main-color);
  border-radius: 10px;
}

html {
  font-size: 62.5%;
  overflow-x: hidden;
}

body {
  background: var(--bg-color);
  color: var(--text-color);
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 80%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 107, 107, 0.1) 0%, transparent 50%);
  z-index: -1;
}

section {
  min-height: 100vh;
  padding: 10rem 9% 2rem;
}

/* Header Styles */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 2rem 9%;
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  border-bottom: 1px solid var(--border-color);
}

.header.sticky {
  background: rgba(10, 10, 10, 0.95);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.logo {
  font-size: 2.5rem;
  color: var(--text-color);
  font-weight: 700;
  cursor: pointer;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.navbar a {
  font-size: 1.7rem;
  color: var(--text-color);
  margin-left: 4rem;
  transition: all 0.3s ease;
  position: relative;
}

.navbar a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--main-color);
  transition: width 0.3s ease;
}

.navbar a:hover::after,
.navbar a.active::after {
  width: 100%;
}

.navbar a:hover,
.navbar a.active {
  color: var(--main-color);
}

#menu-icon {
  font-size: 3.6rem;
  color: var(--text-color);
  display: none;
  cursor: pointer;
}

/* Home Section */
.home {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4rem;
  position: relative;
}

.home-content {
  flex: 1;
  max-width: 600px;
}

.home-content h3 {
  font-size: 2.3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.home-content h3:nth-of-type(2) {
  margin-bottom: 2rem;
}

.home-content h1 {
  font-size: 5.6rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
}

span {
  color: var(--main-color);
}

.home-content p {
  font-size: 1.6rem;
  margin-bottom: 3rem;
  line-height: 1.6;
  opacity: 0.9;
}

.social-media {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.social-media a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 4rem;
  height: 4rem;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  font-size: 2rem;
  color: var(--main-color);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.social-media a:hover {
  background: var(--main-color);
  color: var(--bg-color);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 212, 255, 0.3);
}

.btn {
  display: inline-block;
  padding: 1.2rem 3rem;
  background: var(--gradient);
  border-radius: 50px;
  font-size: 1.6rem;
  color: var(--text-color);
  letter-spacing: 0.1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.home-img {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.home-img img {
  width: 400px;
  height: 400px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--main-color);
  animation: floatImage 6s ease-in-out infinite;
  box-shadow: 0 0 50px rgba(0, 212, 255, 0.3);
}

@keyframes floatImage {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* About Section */
.about {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4rem;
  background: var(--second-bg-color);
}

.about-img {
  flex: 1;
  display: flex;
  justify-content: center;
}

.about-img img {
  width: 350px;
  height: 350px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--main-color);
  box-shadow: 0 0 50px rgba(0, 212, 255, 0.3);
}

.about-content {
  flex: 1;
  max-width: 600px;
}

.heading {
  text-align: center;
  font-size: 4.5rem;
  margin-bottom: 3rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-content h2 {
  text-align: left;
  line-height: 1.2;
  margin-bottom: 2rem;
}

.about-content h3 {
  font-size: 2.6rem;
  margin-bottom: 2rem;
  color: var(--main-color);
}

.about-content p {
  font-size: 1.6rem;
  margin: 2rem 0 3rem;
  line-height: 1.6;
  opacity: 0.9;
}

/* Skills Section */
.skills {
  background: var(--bg-color);
}

.skills h2 {
  margin-bottom: 5rem;
}

.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
}

.skill-category {
  background: var(--card-bg);
  padding: 3rem;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.skill-category:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.skill-category h3 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--main-color);
  text-align: center;
}

.skill-item {
  margin-bottom: 2rem;
}

.skill-name {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 1.4rem;
}

.skill-bar {
  height: 8px;
  background: var(--second-bg-color);
  border-radius: 10px;
  overflow: hidden;
}

.skill-progress {
  height: 100%;
  background: var(--gradient);
  border-radius: 10px;
  transition: width 2s ease;
}

/* Services Section */
.services h2 {
  margin-bottom: 5rem;
}

.services-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 3rem;
}

.services-box {
  background: var(--card-bg);
  padding: 3rem 2rem;
  border-radius: 20px;
  text-align: center;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.services-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.services-box:hover::before {
  opacity: 0.1;
}

.services-box:hover {
  transform: translateY(-10px);
  border-color: var(--main-color);
  box-shadow: 0 20px 40px rgba(0, 212, 255, 0.2);
}

.services-box i {
  font-size: 6rem;
  color: var(--main-color);
  margin-bottom: 2rem;
}

.services-box h3 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.services-box p {
  font-size: 1.4rem;
  line-height: 1.6;
  opacity: 0.9;
}

/* Portfolio Section */
.portfolio {
  background: var(--second-bg-color);
}

.portfolio h2 {
  margin-bottom: 5rem;
}

.portfolio-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 3rem;
}

.portfolio-box {
  border-radius: 20px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  padding: 3rem;
  text-align: center;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portfolio-box:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border-color: var(--main-color);
}

.portfolio-content h4 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--main-color);
}

.portfolio-content p {
  font-size: 1.4rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  line-height: 1.6;
}

.project-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.project-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: var(--gradient);
  color: var(--text-color);
  border-radius: 25px;
  font-size: 1.4rem;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
}

.project-links a:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 212, 255, 0.3);
}

/* Testimonials Section */
.testimonials {
  background: var(--bg-color);
}

.testimonials h2 {
  margin-bottom: 5rem;
}

.testimonials-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
}

.testimonial-box {
  background: var(--card-bg);
  padding: 3rem;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
  text-align: center;
  transition: all 0.3s ease;
}

.testimonial-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.testimonial-box p {
  font-size: 1.4rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.testimonial-author img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-author h4 {
  font-size: 1.6rem;
  color: var(--main-color);
}

/* Contact Section */
.contact {
  background: var(--second-bg-color);
  padding-bottom: 5rem;
}

.contact h2 {
  margin-bottom: 3rem;
}

.contact form {
  max-width: 70rem;
  margin: 1rem auto;
  text-align: center;
  margin-bottom: 5rem;
}

.contact form .input-box {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.contact form .input-box input,
.contact form textarea {
  padding: 1.5rem;
  font-size: 1.6rem;
  color: var(--text-color);
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 15px;
  margin: 0.7rem 0;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.contact form .input-box input {
  width: 48%;
}

.contact form textarea {
  width: 100%;
  resize: none;
  min-height: 150px;
}

.contact form .input-box input:focus,
.contact form textarea:focus {
  border-color: var(--main-color);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}

.contact form .btn {
  margin-top: 2rem;
  cursor: pointer;
}

/* Footer */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 3rem 9%;
  background: var(--bg-color);
  border-top: 1px solid var(--border-color);
  margin-top: 2rem;
}

.footer-text p {
  font-size: 1.6rem;
  opacity: 0.8;
}

.footer-textTop a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  background: var(--gradient);
  border-radius: 15px;
  transition: all 0.3s ease;
}

.footer-textTop a:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 212, 255, 0.3);
}

.footer-textTop a i {
  font-size: 2.4rem;
  color: var(--text-color);
}

/* Responsive Design */
@media (max-width: 1200px) {
  html {
    font-size: 55%;
  }
}

@media (max-width: 991px) {
  .header {
    padding: 2rem 3%;
  }
  section {
    padding: 10rem 3% 2rem;
  }
  .footer {
    padding: 2rem 3%;
  }
}

@media (max-width: 768px) {
  #menu-icon {
    display: block;
  }
  
  .navbar {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 1rem 3%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-color);
    display: none;
  }
  
  .navbar.active {
    display: block;
  }
  
  .navbar a {
    display: block;
    font-size: 2rem;
    margin: 3rem 0;
  }
  
  .home {
    flex-direction: column;
    text-align: center;
  }
  
  .home-content h1 {
    font-size: 4rem;
  }
  
  .home-img img {
    width: 300px;
    height: 300px;
  }
  
  .about {
    flex-direction: column-reverse;
    text-align: center;
  }
  
  .about-img img {
    width: 300px;
    height: 300px;
  }
  
  .contact form .input-box input {
    width: 100%;
  }
  
  .contact {
    padding-bottom: 3rem;
  }
  
  .contact form {
    margin-bottom: 3rem;
  }
  
  .portfolio-container {
    grid-template-columns: 1fr;
  }
  
  .services-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 450px) {
  html {
    font-size: 50%;
  }
  
  .home-content h1 {
    font-size: 3.5rem;
  }
  
  .heading {
    font-size: 3.5rem;
  }
}

@media (max-width: 365px) {
  .home-img img {
    width: 250px;
    height: 250px;
  }
  
  .about-img img {
    width: 250px;
    height: 250px;
  }
  
  .footer {
    flex-direction: column-reverse;
    gap: 2rem;
  }
}