/* Reset and Base Styles */
:root {
  --primary-color: #6c63ff;
  --primary-color-light: #8a84ff;
  --primary-color-dark: #5046e5;
  --secondary-color: #ff6584;
  --accent-color: #00c9a7;
  --dark-color: #2d3748;
  --light-color: #f7fafc;
  --text-color: #4a5568;
  --text-color-light: #a0aec0;
  --background-color: #ffffff;
  --background-alt: #f9fafb;
  --border-color: #e2e8f0;
  --shadow-color: rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
  overflow-x: hidden;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.subtitle {
  color: var(--primary-color);
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
  display: block;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--dark-color);
  margin-bottom: 20px;
}

.separator {
  width: 80px;
  height: 4px;
  background: linear-gradient(to right, var(--primary-color), var(--accent-color));
  margin: 0 auto;
  border-radius: 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.primary-btn {
  background: linear-gradient(to right, var(--primary-color), var(--primary-color-light));
  color: white;
  box-shadow: 0 5px 15px rgba(108, 99, 255, 0.3);
}

.primary-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(108, 99, 255, 0.4);
}

.secondary-btn {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.secondary-btn:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-3px);
}

.btn i {
  margin-left: 10px;
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: white;
  box-shadow: 0 2px 10px var(--shadow-color);
  z-index: 1000;
  transition: var(--transition);
}

nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 15px;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--dark-color);
}

.logo span {
  color: var(--primary-color);
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 30px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, var(--primary-color), var(--accent-color));
  transition: width 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-color);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.hamburger {
  display: none;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--dark-color);
  margin: 5px 0;
  transition: var(--transition);
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(108, 99, 255, 0.05), rgba(0, 201, 167, 0.05));
  padding-top: 80px;
  position: relative;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.hero-text {
  flex: 1;
  min-width: 300px;
  padding-right: 30px;
}

.hero-text h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  color: var(--dark-color);
  line-height: 1.2;
}

.hero-text h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--text-color);
}

.highlight {
  color: var(--primary-color);
  position: relative;
  display: inline-block;
}

.highlight::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 8px;
  background-color: rgba(108, 99, 255, 0.2);
  bottom: 5px;
  left: 0;
  z-index: -1;
}

.hero-text p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: var(--text-color);
}

.hero-btns {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.hero-image {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
}

.hero-image-container {
  position: relative;
  width: 400px;
  height: 400px;
}

.hero-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  box-shadow: 0 15px 30px rgba(108, 99, 255, 0.2);
  animation: morphing 10s infinite;
}

@keyframes morphing {
  0% {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  }
  25% {
    border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
  }
  50% {
    border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
  }
  75% {
    border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
  }
  100% {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  }
}

.scroll-down {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

.mouse {
  width: 30px;
  height: 50px;
  border: 2px solid var(--primary-color);
  border-radius: 20px;
  position: relative;
  margin: 0 auto 10px;
}

.mouse span {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background-color: var(--primary-color);
  border-radius: 50%;
  animation: scrollDown 2s infinite;
}

.arrow span {
  display: block;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
  transform: rotate(45deg);
  margin: 0 auto;
  animation: arrowDown 2s infinite;
}

@keyframes scrollDown {
  0% {
    opacity: 1;
    top: 10px;
  }
  100% {
    opacity: 0;
    top: 30px;
  }
}

@keyframes arrowDown {
  0%,
  100% {
    transform: rotate(45deg) translate(0, 0);
    opacity: 0.4;
  }
  50% {
    transform: rotate(45deg) translate(5px, 5px);
    opacity: 1;
  }
}

/* Bento Grid for About Section */
.bento-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, auto);
  gap: 20px;
  width: 100%;
  margin: 0 auto;
}

.bento-card {
  border-radius: 20px;
  box-shadow: 0 10px 30px var(--shadow-color);
  padding: 30px;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  cursor: pointer;
  color: white;
  position: relative;
  overflow: hidden;
  min-height: 250px;
}

.bento-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
  z-index: 1;
  opacity: 0;
  transition: var(--transition);
}

.bento-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.bento-card:hover::before {
  opacity: 1;
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 20px;
  background-color: rgba(255, 255, 255, 0.2);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.bento-card:hover .card-icon {
  transform: scale(1.1);
}

.bento-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  position: relative;
  z-index: 2;
}

.bento-card p,
.bento-card ul {
  margin-bottom: 15px;
  position: relative;
  z-index: 2;
}

.bento-card ul {
  padding-left: 0;
  list-style: none;
}

.bento-card li {
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
}

.skill-bar {
  width: 100%;
  height: 6px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  margin-top: 5px;
  overflow: hidden;
}

.skill-level {
  height: 100%;
  background-color: white;
  border-radius: 3px;
  transition: width 1s ease-in-out;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.tags span {
  background-color: rgba(255, 255, 255, 0.2);
  padding: 5px 10px;
  border-radius: 15px;
  font-size: 0.8rem;
}

.interests {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-top: 10px;
}

.interest-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.interest-item i {
  font-size: 1.2rem;
}

.achievements {
  margin-top: 10px;
}

.achievement-item {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.achievement-icon {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.achievement-text h4 {
  font-size: 1rem;
  margin-bottom: 5px;
}

.achievement-text p {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-bottom: 0;
}

.goals-progress {
  margin-top: 15px;
}

.goal {
  margin-bottom: 10px;
}

.progress-bar {
  width: 100%;
  height: 6px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  margin-top: 5px;
  overflow: hidden;
}

.progress {
  height: 100%;
  background-color: white;
  border-radius: 3px;
  transition: width 1s ease-in-out;
}

/* Grid Positioning with Gradient Colors */
.purple {
  background: linear-gradient(135deg, #8a84ff, #6c63ff);
  grid-column: 1;
  grid-row: 1 / span 2;
}

.pink {
  background: linear-gradient(135deg, #ff6584, #ff4d6d);
  grid-column: 2 / span 2;
  grid-row: 1;
}

.green {
  background: linear-gradient(135deg, #00c9a7, #00b4d8);
  grid-column: 2;
  grid-row: 2;
}

.yellow {
  background: linear-gradient(135deg, #ffc75f, #ff9671);
  grid-column: 3;
  grid-row: 2;
}

.orange {
  background: linear-gradient(135deg, #ff9671, #ff6f91);
  grid-column: 1;
  grid-row: 3;
}

.blue {
  background: linear-gradient(135deg, #00b4d8, #0096c7);
  grid-column: 2 / span 2;
  grid-row: 3;
}

/* Portfolio Section */
.portfolio-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.portfolio-item {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px var(--shadow-color);
  transition: var(--transition);
}

.portfolio-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.portfolio-image {
  position: relative;
  overflow: hidden;
}

.portfolio-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.portfolio-item:hover .portfolio-image img {
  transform: scale(1.05);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(108, 99, 255, 0.9), rgba(0, 201, 167, 0.7));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-info {
  text-align: center;
  color: white;
  padding: 20px;
  transform: translateY(20px);
  transition: transform 0.4s ease;
}

.portfolio-item:hover .portfolio-info {
  transform: translateY(0);
}

.portfolio-info h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.portfolio-info p {
  margin-bottom: 20px;
}

.portfolio-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background-color: white;
  color: var(--primary-color);
  border-radius: 50%;
  transition: var(--transition);
}

.portfolio-link:hover {
  transform: scale(1.1);
  background-color: var(--accent-color);
  color: white;
}

.portfolio-more {
  text-align: center;
  margin-top: 30px;
}

/* Contact Section */
.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
  align-items: flex-start;
}

.contact-info,
.contact-form {
  flex: 1;
  min-width: 300px;
}

.contact-info h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: var(--dark-color);
}

.contact-info p {
  margin-bottom: 30px;
  color: var(--text-color);
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.social-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text-color);
  transition: var(--transition);
}

.social-link:hover {
  transform: translateX(10px);
}

.social-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  color: white;
  font-size: 1.2rem;
  transition: var(--transition);
}

.social-link:hover .social-icon {
  transform: scale(1.1);
}

.instagram {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.linkedin {
  background-color: #0077b5;
}

.pinterest {
  background-color: #e60023;
}

.spotify {
  background-color: #1db954;
}

.contact-form {
  background-color: white;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 10px 30px var(--shadow-color);
}

.form-group {
  position: relative;
  margin-bottom: 30px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px 0;
  font-size: 1rem;
  color: var(--text-color);
  border: none;
  border-bottom: 2px solid var(--border-color);
  outline: none;
  background-color: transparent;
  transition: var(--transition);
}

.form-group label {
  position: absolute;
  top: 15px;
  left: 0;
  color: var(--text-color-light);
  pointer-events: none;
  transition: var(--transition);
}

.form-group input:focus ~ label,
.form-group textarea:focus ~ label,
.form-group input:valid ~ label,
.form-group textarea:valid ~ label {
  top: -10px;
  font-size: 0.8rem;
  color: var(--primary-color);
}

.form-group input:focus,
.form-group textarea:focus {
  border-bottom-color: var(--primary-color);
}

.focus-border {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

.form-group input:focus ~ .focus-border,
.form-group textarea:focus ~ .focus-border {
  width: 100%;
}

/* Footer */
footer {
  background-color: var(--dark-color);
  color: white;
  padding: 50px 0 20px;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.footer-logo h3 {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.footer-logo span {
  color: var(--primary-color);
}

.footer-logo p {
  color: var(--text-color-light);
}

.footer-social {
  display: flex;
  gap: 15px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: var(--transition);
}

.footer-social a:hover {
  background-color: var(--primary-color);
  transform: translateY(-5px);
}

.copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-color-light);
}

/* Responsive Design */
@media (max-width: 992px) {
  .section-title {
    font-size: 2.2rem;
  }

  .hero-text h1 {
    font-size: 3rem;
  }

  .hero-text h2 {
    font-size: 1.8rem;
  }

  .bento-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .purple {
    grid-column: 1;
    grid-row: 1;
  }

  .pink {
    grid-column: 2;
    grid-row: 1;
  }

  .green {
    grid-column: 1;
    grid-row: 2;
  }

  .yellow {
    grid-column: 2;
    grid-row: 2;
  }

  .orange {
    grid-column: 1;
    grid-row: 3;
  }

  .blue {
    grid-column: 2;
    grid-row: 3;
  }

  .portfolio-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .section {
    padding: 80px 0;
  }

  .section-title {
    font-size: 2rem;
  }

  .hero-text h1 {
    font-size: 2.5rem;
  }

  .hero-text h2 {
    font-size: 1.5rem;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: white;
    flex-direction: column;
    align-items: center;
    padding: 50px 0;
    transition: left 0.3s ease;
  }

  .nav-links.active {
    left: 0;
  }

  .nav-links li {
    margin: 15px 0;
  }

  .hamburger {
    display: block;
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }

  .portfolio-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .hero-content {
    flex-direction: column-reverse;
  }

  .hero-text {
    padding-right: 0;
    text-align: center;
    margin-top: 30px;
  }

  .hero-btns {
    justify-content: center;
  }

  .hero-image-container {
    width: 300px;
    height: 300px;
  }

  .bento-container {
    grid-template-columns: 1fr;
  }

  .purple,
  .pink,
  .green,
  .yellow,
  .orange,
  .blue {
    grid-column: 1;
    grid-row: auto;
  }

  .contact-container {
    flex-direction: column;
  }
}

