/* 
 * 3D Artist Portfolio - Main Stylesheet
 * Author: Alex Johnson
 * Version: 1.0
 */

/* ===== Base Styles ===== */
:root {
  --primary-color: #6c63ff;
  --secondary-color: #ff6b6b;
  --accent-color: #63e6be;
  --dark-color: #1a1a2e;
  --darker-color: #16161d;
  --light-color: #f5f5f7;
  --text-color: #333;
  --text-light: #777;
  --text-dark: #111;
  --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --shadow-dark: 0 5px 15px rgba(0, 0, 0, 0.3);
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 62.5%; /* 1rem = 10px */
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

h1 {
  font-size: 5rem;
}

h2 {
  font-size: 4rem;
}

h3 {
  font-size: 2.8rem;
}

h4 {
  font-size: 2.2rem;
}

p {
  margin-bottom: 1.5rem;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: var(--transition);
}

a:hover {
  color: var(--secondary-color);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

section {
  padding: 10rem 0;
}

.container {
  width: 100%;
  max-width: 120rem;
  margin: 0 auto;
  padding: 0 2rem;
}

.btn {
  display: inline-block;
  padding: 1.2rem 3rem;
  border-radius: 5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1.4rem;
}

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

.btn-primary:hover {
  background-color: transparent;
  color: var(--primary-color);
}

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

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

.section-header {
  text-align: center;
  margin-bottom: 6rem;
}

.section-header h2 {
  position: relative;
  display: inline-block;
  margin-bottom: 1.5rem;
}

.section-header h2 span {
  color: var(--primary-color);
}

.section-header p {
  max-width: 60rem;
  margin: 0 auto;
  color: var(--text-light);
}

/* ===== Custom Cursor ===== */
.cursor {
  position: fixed;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--primary-color);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease;
  opacity: 0.7;
}

.cursor-follower {
  position: fixed;
  width: 30px;
  height: 30px;
  border: 2px solid var(--primary-color);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.3s ease, width 0.3s ease, height 0.3s ease;
  opacity: 0.5;
}

/* ===== Loader ===== */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--darker-color);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-content {
  text-align: center;
}

.loader-progress {
  width: 30rem;
  height: 2px;
  background-color: rgba(255, 255, 255, 0.2);
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.loader-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background-color: var(--primary-color);
  transition: width 0.5s ease;
}

.loader-text {
  color: white;
  font-size: 1.6rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* ===== Navigation ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 2rem 0;
  transition: var(--transition);
}

.navbar.scrolled {
  background-color: var(--darker-color);
  padding: 1.5rem 0;
  box-shadow: var(--shadow-dark);
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 120rem;
  margin: 0 auto;
  padding: 0 2rem;
}

.logo {
  font-size: 2.8rem;
  font-weight: 700;
  color: white;
  letter-spacing: 1px;
}

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

.nav-menu {
  display: flex;
}

.nav-menu li {
  margin-left: 3rem;
}

.nav-link {
  color: white;
  font-size: 1.6rem;
  font-weight: 500;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

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

.menu-toggle {
  display: none;
  cursor: pointer;
}

.bar {
  width: 25px;
  height: 3px;
  background-color: white;
  margin: 5px 0;
  transition: var(--transition);
}

/* ===== Hero Section ===== */
.hero {
  height: 100vh;
  background-color: var(--darker-color);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-content {
  width: 50%;
  padding-left: 10rem;
  z-index: 1;
}

.hero-title {
  color: white;
  margin-bottom: 2rem;
  font-size: 6rem;
}

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

.hero-subtitle {
  color: var(--text-light);
  font-size: 2rem;
  margin-bottom: 4rem;
  max-width: 50rem;
}

.hero-cta {
  display: flex;
  gap: 2rem;
}

.hero-model-container {
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 100%;
}

#hero-model {
  width: 100%;
  height: 100%;
}

.model-controls {
  position: absolute;
  bottom: 5rem;
  right: 5rem;
  display: flex;
  gap: 1rem;
}

.model-controls button {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  justify-content: center;
  align-items: center;
}

.model-controls button:hover {
  background-color: var(--primary-color);
}

/* ===== Featured Work Section ===== */
.featured {
  background-color: var(--light-color);
  padding: 10rem 0;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  max-width: 120rem;
  margin: 0 auto;
  padding: 0 2rem;
}

.featured-item {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.featured-item:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-dark);
}

.featured-image {
  position: relative;
  overflow: hidden;
  height: 40rem;
}

.featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.featured-item:hover .featured-image img {
  transform: scale(1.1);
}

.featured-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 2rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: white;
  transform: translateY(20%);
  opacity: 0;
  transition: var(--transition);
}

.featured-item:hover .featured-overlay {
  transform: translateY(0);
  opacity: 1;
}

.featured-info h3 {
  color: white;
  margin-bottom: 0.5rem;
}

.featured-info p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0;
}

/* ===== Portfolio Section ===== */
.portfolio {
  background-color: white;
  padding: 10rem 0;
}

.portfolio-filter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 4rem;
}

.filter-btn {
  padding: 0.8rem 2rem;
  background-color: transparent;
  border: 2px solid var(--primary-color);
  border-radius: 3rem;
  color: var(--primary-color);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn.active,
.filter-btn:hover {
  background-color: var(--primary-color);
  color: white;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(30rem, 1fr));
  gap: 3rem;
  max-width: 120rem;
  margin: 0 auto;
  padding: 0 2rem;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.portfolio-item:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-dark);
}

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

.portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: var(--transition);
}

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

.portfolio-info {
  text-align: center;
  padding: 2rem;
  transform: translateY(20px);
  transition: var(--transition);
}

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

.portfolio-info h3 {
  color: white;
  margin-bottom: 0.5rem;
}

.portfolio-info p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2rem;
}

.portfolio-link {
  display: inline-block;
  padding: 0.8rem 2rem;
  background-color: var(--primary-color);
  color: white;
  border-radius: 3rem;
  font-weight: 500;
  transition: var(--transition);
}

.portfolio-link:hover {
  background-color: white;
  color: var(--primary-color);
}

/* ===== About Section ===== */
.about {
  background-color: var(--light-color);
  padding: 10rem 0;
}

.about-content {
  display: flex;
  align-items: center;
  gap: 5rem;
  max-width: 120rem;
  margin: 0 auto;
  padding: 0 2rem;
}

.about-image {
  flex: 1;
  position: relative;
}

.about-image img {
  width: 100%;
  border-radius: 1rem;
  box-shadow: var(--shadow);
}

.about-text {
  flex: 1;
}

.about-text h3 {
  margin-bottom: 0.5rem;
}

.about-text h4 {
  color: var(--primary-color);
  margin-bottom: 2rem;
  font-weight: 500;
}

.about-skills {
  margin-top: 3rem;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.skill-tag {
  padding: 0.8rem 1.5rem;
  background-color: rgba(108, 99, 255, 0.1);
  color: var(--primary-color);
  border-radius: 3rem;
  font-size: 1.4rem;
}

.about-cta {
  margin-top: 3rem;
  display: flex;
  gap: 2rem;
}

/* ===== Services Section ===== */
.services {
  background-color: white;
  padding: 10rem 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(25rem, 1fr));
  gap: 3rem;
  max-width: 120rem;
  margin: 0 auto;
  padding: 0 2rem;
}

.service-card {
  background-color: white;
  border-radius: 1rem;
  padding: 3rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  background-color: var(--primary-color);
  opacity: 0.05;
  transition: var(--transition);
  z-index: -1;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-dark);
}

.service-card:hover::before {
  height: 100%;
}

.service-icon {
  width: 7rem;
  height: 7rem;
  background-color: rgba(108, 99, 255, 0.1);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 2rem;
  color: var(--primary-color);
  font-size: 2.5rem;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background-color: var(--primary-color);
  color: white;
}

.service-card h3 {
  margin-bottom: 1.5rem;
}

.service-card p {
  margin-bottom: 2rem;
  color: var(--text-light);
}

.service-features {
  list-style: none;
}

.service-features li {
  position: relative;
  padding-left: 2.5rem;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.service-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

/* ===== Process Section ===== */
.process {
  background-color: var(--light-color);
  padding: 10rem 0;
}

.process-timeline {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
}

.process-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 7.5rem;
  width: 2px;
  height: 100%;
  background-color: rgba(108, 99, 255, 0.2);
}

.process-step {
  display: flex;
  margin-bottom: 5rem;
  position: relative;
}

.process-step:last-child {
  margin-bottom: 0;
}

.process-number {
  width: 5rem;
  height: 5rem;
  background-color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-weight: 700;
  font-size: 1.8rem;
  margin-right: 5rem;
  position: relative;
  z-index: 1;
}

.process-content {
  flex: 1;
  background-color: white;
  border-radius: 1rem;
  padding: 2.5rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.process-step:hover .process-content {
  transform: translateY(-5px);
  box-shadow: var(--shadow-dark);
}

.process-content h3 {
  margin-bottom: 1rem;
}

.process-content p {
  color: var(--text-light);
  margin-bottom: 0;
}

/* ===== Testimonials Section ===== */
.testimonials {
  background-color: white;
  padding: 10rem 0;
}

.testimonial-slider {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  overflow: hidden;
}

.testimonial-slide {
  width: 100%;
}

.testimonial-content {
  background-color: var(--light-color);
  border-radius: 1rem;
  padding: 4rem;
  box-shadow: var(--shadow);
}

.testimonial-quote {
  position: relative;
  padding: 0 2rem;
  margin-bottom: 3rem;
}

.testimonial-quote i {
  color: var(--primary-color);
  font-size: 2.5rem;
  opacity: 0.3;
}

.testimonial-quote i:first-child {
  position: absolute;
  top: 0;
  left: 0;
}

.testimonial-quote i:last-child {
  position: absolute;
  bottom: 0;
  right: 0;
}

.testimonial-quote p {
  font-size: 1.8rem;
  line-height: 1.8;
  margin: 2rem 0;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.testimonial-author img {
  width: 6rem;
  height: 6rem;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 2rem;
}

.author-info h4 {
  margin-bottom: 0.5rem;
}

.author-info p {
  color: var(--text-light);
  margin-bottom: 0;
}

.testimonial-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 4rem;
}

.testimonial-prev,
.testimonial-next {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background-color: white;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  font-size: 1.6rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  justify-content: center;
  align-items: center;
}

.testimonial-prev:hover,
.testimonial-next:hover {
  background-color: var(--primary-color);
  color: white;
}

.testimonial-dots {
  display: flex;
  gap: 1rem;
  margin: 0 2rem;
}

.dot {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background-color: rgba(108, 99, 255, 0.3);
  cursor: pointer;
  transition: var(--transition);
}

.dot.active {
  background-color: var(--primary-color);
}

/* ===== Contact Section ===== */
.contact {
  background-color: var(--light-color);
  padding: 10rem 0;
}

.contact-container {
  display: flex;
  gap: 5rem;
  max-width: 120rem;
  margin: 0 auto;
  padding: 0 2rem;
}

.contact-info {
  flex: 1;
  background-color: var(--darker-color);
  border-radius: 1rem;
  padding: 4rem;
  color: white;
}

.contact-info h3 {
  color: white;
  margin-bottom: 2rem;
}

.contact-info p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 3rem;
}

.info-item {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
}

.info-item i {
  width: 4rem;
  height: 4rem;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 2rem;
  color: var(--primary-color);
}

.social-links {
  display: flex;
  gap: 1.5rem;
  margin-top: 3rem;
}

.social-link {
  width: 4rem;
  height: 4rem;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  transition: var(--transition);
}

.social-link:hover {
  background-color: var(--primary-color);
  color: white;
}

.contact-form {
  flex: 1;
  background-color: white;
  border-radius: 1rem;
  padding: 4rem;
  box-shadow: var(--shadow);
}

.contact-form h3 {
  margin-bottom: 3rem;
}

.form-group {
  margin-bottom: 2rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.8rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1.2rem;
  border: 1px solid #ddd;
  border-radius: 0.5rem;
  font-family: 'Poppins', sans-serif;
  font-size: 1.6rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(108, 99, 255, 0.2);
}

/* ===== Footer ===== */
.footer {
  background-color: var(--darker-color);
  color: white;
  padding: 5rem 0 2rem;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  max-width: 120rem;
  margin: 0 auto;
  padding: 0 2rem;
  margin-bottom: 4rem;
}

.footer-logo a {
  font-size: 2.8rem;
  font-weight: 700;
  color: white;
  letter-spacing: 1px;
}

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

.footer-nav ul {
  display: flex;
  gap: 3rem;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

.footer-nav a:hover {
  color: var(--primary-color);
}

.footer-social {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.4rem;
  margin-bottom: 0;
}

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

@media screen and (max-width: 992px) {
  html {
    font-size: 50%;
  }
  
  .hero-content {
    width: 60%;
    padding-left: 5rem;
  }
  
  .hero-model-container {
    width: 50%;
  }
  
  .about-content,
  .contact-container {
    flex-direction: column;
  }
  
  .about-image,
  .about-text,
  .contact-info,
  .contact-form {
    flex: auto;
    width: 100%;
  }
  
  .about-image {
    margin-bottom: 4rem;
  }
  
  .contact-info {
    margin-bottom: 4rem;
  }
}

@media screen and (max-width: 768px) {
  section {
    padding: 8rem 0;
  }
  
  .hero {
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }
  
  .hero-content {
    width: 100%;
    padding: 0 2rem;
    margin-bottom: 5rem;
  }
  
  .hero-subtitle {
    margin: 0 auto 4rem;
  }
  
  .hero-cta {
    justify-content: center;
  }
  
  .hero-model-container {
    position: relative;
    width: 100%;
    height: 50vh;
  }
  
  .model-controls {
    right: 50%;
    transform: translateX(50%);
  }
  
  .featured-grid {
    grid-template-columns: 1fr;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background-color: var(--darker-color);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
    z-index: 999;
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .nav-menu li {
    margin: 2rem 0;
  }
  
  .nav-link {
    font-size: 2rem;
  }
  
  .footer-container {
    flex-direction: column;
    gap: 3rem;
    text-align: center;
  }
  
  .footer-nav ul {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .footer-social {
    justify-content: center;
  }
}

@media screen and (max-width: 576px) {
  html {
    font-size: 45%;
  }
  
  .section-header h2 {
    font-size: 3.5rem;
  }
  
  .portfolio-grid,
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .process-timeline::before {
    left: 5rem;
  }
  
  .process-number {
    width: 4rem;
    height: 4rem;
    font-size: 1.6rem;
    margin-right: 3rem;
  }
  
  .testimonial-content {
    padding: 3rem 2rem;
  }
  
  .testimonial-author img {
    width: 5rem;
    height: 5rem;
  }
}