/* Global Styles & Variables */
:root {
  --primary-color: #4831d4;
  --secondary-color: #ccf381;
  --dark-color: #1e1e1e;
  --light-color: #f9f9f9;
  --text-color: #333;
  --transition: all 0.3s ease;
  --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --border-radius: 10px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--light-color);
  color: var(--text-color);
  line-height: 1.7;
}

section {
  padding: 100px 0;
  overflow: hidden;
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 50px;
  position: relative;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 50px;
  height: 4px;
  background: var(--primary-color);
}

.section-title span {
  color: var(--primary-color);
}

button {
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  padding: 12px 30px;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  outline: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

button:hover {
  background-color: #3722bf;
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

a {
  text-decoration: none;
  color: inherit;
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 0;
  z-index: 1000;
  background-color: transparent;
  transition: var(--transition);
}

nav.scrolled {
  background-color: #fff;
  box-shadow: var(--shadow);
  padding: 15px 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
}

.logo span {
  color: var(--primary-color);
}

nav .links {
  display: flex;
  gap: 30px;
}

nav .links a {
  font-weight: 500;
  position: relative;
  transition: var(--transition);
}

nav .links a:hover {
  color: var(--primary-color);
}

nav .links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--primary-color);
  transition: var(--transition);
}

nav .links a:hover::after {
  width: 100%;
}

.hamburg {
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
}

.dropdown {
  position: fixed;
  top: 0;
  right: -100%;
  width: 70%;
  height: 100vh;
  background-color: #fff;
  z-index: 1001;
  padding: 50px 20px;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.dropdown.active {
  right: 0;
}

.dropdown .links {
  display: flex;
  flex-direction: column;
  text-align: center;
}

.dropdown .links a {
  margin: 20px 0;
  font-size: 1.2rem;
  font-weight: 500;
}

.cancel {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
#home {
  height: 100vh;
  display: flex;
  align-items: center;
  background-color: var(--light-color);
  padding: 0;
}

.main-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.content {
  max-width: 600px;
}

.content h1 {
  font-size: 3rem;
  margin-bottom: 10px;
}

.content h1 span {
  color: var(--primary-color);
}

.typewriter {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 20px;
  height: 30px;
  color: var(--primary-color);
}

.content p {
  margin-bottom: 30px;
  font-size: 1.1rem;
}

.social-links {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--transition);
}

.social-links a:hover {
  transform: translateY(-5px);
  background-color: #3722bf;
}

.image {
  position: relative;
  z-index: 1;
}

.image img {
  width: 400px;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  box-shadow: var(--shadow);
  animation: morph 8s ease-in-out infinite;
}
.button {
  display: inline-block;
  background-color: var(--primary-color);
  color: #fff;
  border: 1px solid var(--primary-color);
  padding: 8px 20px;
  border-radius: 30px;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  background-color: transparent;
  color: var(--primary-color);
}

/* About Section */
.about-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 50px;
  margin-bottom: 50px;
}

.about-image {
  position: relative;
}

.about-image img {
  width: 100%;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.experience-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  background-color: var(--primary-color);
  color: #fff;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  box-shadow: var(--shadow);
}

.years {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.text {
  font-size: 0.9rem;
  margin-top: 5px;
}

.about-intro {
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.about-description p {
  margin-bottom: 15px;
}

.skills-container {
  margin-top: 30px;
}

.skills-container h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.skills {
  display: grid;
  gap: 15px;
}

.skill-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.skill-name {
  font-weight: 500;
}

.skill-bar {
  height: 10px;
  background-color: #e9ecef;
  border-radius: 5px;
  overflow: hidden;
}

.skill-progress {
  height: 100%;
  background-color: var(--primary-color);
  border-radius: 5px;
}

.services h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.services-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.service-card {
  background-color: #fff;
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.service-icon {
  width: 60px;
  height: 60px;
  background-color: var(--primary-color);
  color: #fff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.service-card h4 {
  font-size: 1.2rem;
  margin-bottom: 15px;
}

/* Projects Section */
.filter-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-btn {
  background-color: transparent;
  color: var(--text-color);
  border: 1px solid #ddd;
  padding: 8px 20px;
  border-radius: 30px;
  box-shadow: none;
}

.filter-btn:hover, .filter-btn.active {
  background-color: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
}

.project-card {
  background-color: #fff;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.project-img {
  height: 200px;
  overflow: hidden;
}

.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-img img {
  transform: scale(1.1);
}

.project-content {
  padding: 20px;
}

.project-content h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.project-content p {
  font-size: 0.9rem;
  margin-bottom: 15px;
  color: #666;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
}

.project-tech span {
  font-size: 0.8rem;
  background-color: #f0f0f0;
  padding: 5px 10px;
  border-radius: 20px;
}

.project-links {
  display: flex;
  justify-content: space-between;
}

.project-link {
  font-size: 0.9rem;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition);
}

.project-link:hover {
  color: #3722bf;
}

/* Contact Section */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 50px;
}

.contact-info h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.contact-info > p {
  margin-bottom: 30px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 30px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 15px;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: #fff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
}

.contact-text h4 {
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.contact-social {
  justify-content: flex-start;
}

.contact-form-container {
  background-color: #fff;
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 20px;
  position: relative;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
  transition: var(--transition);
}

.form-group label {
  position: absolute;
  top: 12px;
  left: 15px;
  font-size: 1rem;
  color: #666;
  transition: var(--transition);
  pointer-events: none;
  background-color: transparent;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary-color);
  outline: none;
}

.form-group input:focus ~ label,
.form-group textarea:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
  top: -10px;
  left: 10px;
  font-size: 0.8rem;
  color: var(--primary-color);
  background-color: #fff;
  padding: 0 5px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: transparent;
}

.send-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
}

.send-btn i {
  transition: transform 0.3s ease;
}

.send-btn:hover i {
  transform: translateX(5px);
}

/* Animation for sections */
.section-hidden {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.5s, transform 0.5s;
}

.section-show {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .about-image {
    max-width: 400px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }
  
  nav .links {
    display: none;
  }
  
  .hamburg {
    display: block;
  }
  
  .main-container {
    flex-direction: column-reverse;
    text-align: center;
    padding-top: 70px;
  }
  
  .image {
    margin-bottom: 50px;
  }
  
  .image img {
    width: 300px;
  }
  
  .social-links {
    justify-content: center;
  }
  
  .services-container {
    grid-template-columns: 1fr;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  section {
    padding: 70px 0;
  }
  
  .image img {
    width: 250px;
  }
  
  .experience-badge {
    width: 100px;
    height: 100px;
    bottom: -15px;
    right: -15px;
  }
}
