/* GENERAL STYLES */
:root {
  --primary-color: #f2e9e4;
  --secondary-color: #c9ada7;
  --accent-color: #a5a58d;
  --dark-color: #22223b;
  --light-color: #ffffff;
  --cream-color: #f8f6f2;
  --transition: all 0.3s ease-in-out;
  --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --border-radius: 8px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--cream-color);
  color: var(--dark-color);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 100px 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 30px;
  border-radius: var(--border-radius);
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1rem;
  gap: 8px;
}

.primary-btn {
  background-color: var(--accent-color);
  color: var(--light-color);
  border: none;
}

.primary-btn:hover {
  background-color: var(--dark-color);
  transform: translateY(-3px);
  box-shadow: var(--box-shadow);
}

.secondary-btn {
  background-color: transparent;
  color: var(--dark-color);
  border: 2px solid var(--accent-color);
}

.secondary-btn:hover {
  background-color: var(--accent-color);
  color: var(--light-color);
  transform: translateY(-3px);
  box-shadow: var(--box-shadow);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-line {
  width: 70px;
  height: 3px;
  background-color: var(--accent-color);
  margin: 0 auto;
}

.highlight {
  color: var(--accent-color);
}

/* CUSTOM CURSOR */
.cursor,
.cursor-follower {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease;
}

.cursor {
  width: 8px;
  height: 8px;
  background-color: var(--dark-color);
}

.cursor-follower {
  width: 30px;
  height: 30px;
  border: 2px solid var(--dark-color);
  transition: all 0.3s ease-out;
}

/* LOADER */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--cream-color);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.loader-circle {
  width: 50px;
  height: 50px;
  border: 4px solid var(--secondary-color);
  border-top: 4px solid var(--accent-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 15px;
}

.loader-text {
  font-size: 1.2rem;
  letter-spacing: 2px;
  animation: pulse 1.5s infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.5; }
  100% { opacity: 1; }
}

/* NAVIGATION */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
  background-color: transparent;
}

nav.scrolled {
  background-color: var(--cream-color);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
  padding: 15px 0;
}

nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--dark-color);
  text-decoration: none;
  letter-spacing: 1px;
  transition: var(--transition);
}

.logo a:hover {
  color: var(--accent-color);
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-link {
  color: var(--dark-color);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1rem;
  transition: var(--transition);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--accent-color);
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--accent-color);
}

.nav-link:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  cursor: pointer;
}

.bar {
  width: 25px;
  height: 3px;
  background-color: var(--dark-color);
  margin: 5px 0;
  transition: var(--transition);
}

/* HERO SECTION */
.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  background-color: var(--primary-color);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, transparent 20%, var(--primary-color) 70%);
  opacity: 0.8;
}

.hero-content {
  text-align: center;
  z-index: 2;
  margin-top: -50px;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s forwards;
}

.typing-container {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.8rem;
  height: 50px;
  margin-bottom: 30px;
}

.static-text {
  margin-right: 8px;
}

.dynamic-text {
  color: var(--accent-color);
  font-weight: 600;
  position: relative;
}

.dynamic-text::after {
  content: '|';
  position: absolute;
  right: -8px;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-description {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 40px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s 0.3s forwards;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 20px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s 0.6s forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeIn 1.5s 1s forwards;
  opacity: 0;
}

.mouse {
  width: 26px;
  height: 40px;
  border: 2px solid var(--dark-color);
  border-radius: 20px;
  display: flex;
  justify-content: center;
  padding-top: 10px;
  margin-bottom: 10px;
}

.wheel {
  width: 4px;
  height: 8px;
  background-color: var(--dark-color);
  border-radius: 2px;
  animation: scroll 1.5s infinite;
}

.scroll-arrow {
  display: block;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--dark-color);
  border-bottom: 2px solid var(--dark-color);
  transform: rotate(45deg);
  animation: arrowDown 1.5s infinite;
}

@keyframes scroll {
  0% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(8px); opacity: 0.5; }
  100% { transform: translateY(0); opacity: 1; }
}

@keyframes arrowDown {
  0% { transform: rotate(45deg) translate(0, 0); opacity: 0.4; }
  50% { transform: rotate(45deg) translate(5px, 5px); opacity: 0.8; }
  100% { transform: rotate(45deg) translate(0, 0); opacity: 0.4; }
}

@keyframes fadeIn {
  to { opacity: 1; }
}

/* ABOUT SECTION */
.about {
  background-color: var(--light-color);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-info {
  margin-bottom: 30px;
}

.info-item {
  margin-bottom: 15px;
}

.info-label {
  font-weight: 600;
  color: var(--dark-color);
  margin-right: 10px;
}

.info-value {
  color: var(--accent-color);
}

.about-description {
  margin-bottom: 30px;
  line-height: 1.8;
}

.quote {
  position: relative;
  padding: 20px;
  border-left: 3px solid var(--accent-color);
  background-color: var(--primary-color);
  border-radius: var(--border-radius);
  font-style: italic;
}

.quote p {
  margin: 0;
  z-index: 1;
  position: relative;
}

.quote .fa-quote-left,
.quote .fa-quote-right {
  color: var(--secondary-color);
  opacity: 0.3;
  font-size: 1.5rem;
}

.quote .fa-quote-left {
  position: absolute;
  top: 10px;
  left: 10px;
}

.quote .fa-quote-right {
  position: absolute;
  bottom: 10px;
  right: 10px;
}

.image-container {
  position: relative;
}

.image-box {
  width: 100%;
  max-width: 400px;
  height: 400px;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  position: relative;
  margin: 0 auto;
  background-color: var(--primary-color);
}

.image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-placeholder i {
  font-size: 100px;
  color: var(--secondary-color);
  opacity: 0.5;
}

.image-box::before {
  content: '';
  position: absolute;
  top: -15px;
  left: -15px;
  width: 100%;
  height: 100%;
  border: 2px solid var(--accent-color);
  border-radius: var(--border-radius);
  z-index: -1;
}

/* SKILLS SECTION */
.skills {
  background-color: var(--primary-color);
}

.skills-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.skills-category {
  background-color: var(--light-color);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.skills-category:hover {
  transform: translateY(-10px);
}

.category-title {
  font-size: 1.5rem;
  margin-bottom: 25px;
  color: var(--dark-color);
  position: relative;
  display: inline-block;
}

.category-title::after {
  content: '';
  position: absolute;
  width: 50px;
  height: 2px;
  background-color: var(--accent-color);
  bottom: -8px;
  left: 0;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 20px;
}

.skill-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: var(--transition);
}

.skill-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--primary-color);
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 10px;
  transition: var(--transition);
}

.skill-icon i {
  font-size: 25px;
  color: var(--dark-color);
}

.skill-name {
  font-weight: 500;
}

.skill-item:hover .skill-icon {
  background-color: var(--accent-color);
  transform: scale(1.1);
}

.skill-item:hover .skill-icon i {
  color: var(--light-color);
}

/* PROJECTS SECTION */
.projects {
  background-color: var(--light-color);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
}

.project-card {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  position: relative;
  background-color: var(--primary-color);
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.project-content {
  padding: 25px;
}

.project-title {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--dark-color);
}

.project-description {
  color: var(--dark-color);
  margin-bottom: 15px;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.tech-tag {
  padding: 5px 10px;
  background-color: var(--secondary-color);
  color: var(--light-color);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--dark-color);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.project-link i {
  transition: var(--transition);
}

.project-link:hover {
  color: var(--accent-color);
}

.project-link:hover i {
  transform: translateX(5px);
}

/* CONTACT SECTION */
.contact {
  background-color: var(--primary-color);
}

.contact-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 50px;
}

.contact-form-container {
  background-color: var(--light-color);
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.form-group {
  margin-bottom: 25px;
  position: relative;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--border-radius);
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  background-color: var(--cream-color);
  transition: var(--transition);
}

.form-group textarea {
  height: 150px;
  resize: none;
}

.form-group label {
  position: absolute;
  top: -10px;
  left: 15px;
  padding: 0 5px;
  background-color: var(--light-color);
  font-size: 0.9rem;
  color: var(--dark-color);
  transition: var(--transition);
  opacity: 0;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent-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 {
  opacity: 1;
}

.submit-btn {
  width: 100%;
  margin-top: 10px;
}

.submit-btn i {
  margin-left: 10px;
  transition: var(--transition);
}

.submit-btn:hover i {
  transform: translateX(5px);
}

.contact-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 30px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background-color: var(--cream-color);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.contact-icon i {
  color: var(--accent-color);
  font-size: 1.2rem;
}

.contact-text h3 {
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 10px;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--cream-color);
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--dark-color);
  text-decoration: none;
  transition: var(--transition);
}

.social-link:hover {
  background-color: var(--accent-color);
  color: var(--light-color);
  transform: translateY(-5px);
}

/* FOOTER */
.footer {
  background-color: var(--dark-color);
  color: var(--light-color);
  padding: 50px 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-text p {
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-link {
  color: var(--light-color);
  text-decoration: none;
  transition: var(--transition);
}

.footer-link:hover {
  color: var(--accent-color);
}

/* BACK TO TOP BUTTON */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--accent-color);
  color: var(--light-color);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 99;
  box-shadow: var(--box-shadow);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--dark-color);
  transform: translateY(-5px);
}

/* ANIMATIONS */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 1s;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVE STYLES */
@media (max-width: 992px) {
  .about-content,
  .contact-content {
    grid-template-columns: 1fr;
  }
  
  .about-image {
    order: -1;
    margin-bottom: 30px;
  }
  
  .projects-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  section {
    padding: 70px 0;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 70%;
    background-color: var(--light-color);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 999;
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .hamburger {
    display: block;
    z-index: 1000;
  }
  
  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  
  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .typing-container {
    font-size: 1.5rem;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}

@media (max-width: 576px) {
  .container {
    padding: 0 1.5rem;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .typing-container {
    font-size: 1.3rem;
  }
  
  .hero-cta {
    flex-direction: column;
    gap: 15px;
  }
  
  .btn {
    width: 100%;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .contact-form-container {
    padding: 25px;
  }
}
