:root {
  --primary: #6C63FF;
  --dark: #121212;
  --light: #FFFFFF;
  --gray: #F5F5F7;
  --text-dark: #333;
  --text-light: #E0E0E0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Manrope', sans-serif;
  transition: background 0.3s, color 0.2s;
}

body {
  background: var(--light);
  color: var(--text-dark);
  line-height: 1.6;
}

body.dark-mode {
  background: var(--dark);
  color: var(--text-light);
}

/* Header styles */
header {
  padding: 20px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  z-index: 1000;
  backdrop-filter: blur(10px);
}

body.dark-mode header {
  background: rgba(18, 18, 18, 0.9);
}

.logo {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  text-decoration: none;
  color: inherit;
  font-weight: 600;
}

.theme-toggle {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: inherit;
}

/* Hero section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 10%;
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
  position: relative;
  overflow: hidden;
}

body.dark-mode .hero {
  background: linear-gradient(135deg, #121212 0%, #1E1E1E 100%);
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 70vh;
  height: 70vh;
  background: var(--primary);
  opacity: 0.1;
  border-radius: 50%;
  z-index: 0;
}

.hero-content {
  max-width: 600px;
  z-index: 1;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

.cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: var(--primary);
  color: white;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: transform 0.3s, box-shadow 0.3s;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(108, 99, 255, 0.3);
}

/* Common section styles */
.section {
  padding: 100px 10%;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 50px;
  text-align: center;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--primary);
}

/* About section */
.about-content {
  display: flex;
  align-items: center;
  gap: 50px;
}

.about-img {
  width: 300px;
  height: 300px;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

body.dark-mode .about-img {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 30px;
}

.skill {
  background: var(--gray);
  padding: 8px 15px;
  border-radius: 50px;
  font-size: 0.9rem;
}

body.dark-mode .skill {
  background: #2A2A2A;
}

/* Services section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.service-card {
  background: var(--gray);
  padding: 30px;
  border-radius: 20px;
  transition: transform 0.3s;
}

body.dark-mode .service-card {
  background: #2A2A2A;
}

.service-card:hover {
  transform: translateY(-8px);
}

.service-icon {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 10px;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

/* Reviews section */
.reviews-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.review-card {
  background: var(--gray);
  padding: 25px;
  border-radius: 15px;
  transition: transform 0.3s;
}

body.dark-mode .review-card {
  background: #2A2A2A;
}

.review-card:hover {
  transform: translateY(-5px);
}

.review-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.review-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.review-stars {
  color: #FFD700;
  margin-top: 5px;
}

.review-text {
  font-style: italic;
  margin-bottom: 15px;
  opacity: 0.9;
}

.review-date {
  font-size: 0.8rem;
  opacity: 0.7;
}

/* Contact section */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 1rem;
  background: var(--gray);
}

body.dark-mode .form-group input,
body.dark-mode .form-group textarea {
  background: #2A2A2A;
  border-color: #444;
  color: white;
}

.submit-btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 50px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: transform 0.3s;
}

.submit-btn:hover {
  transform: translateY(-3px);
}

/* Footer */
footer {
  background: var(--gray);
  padding: 50px 10%;
  text-align: center;
}

body.dark-mode footer {
  background: #1E1E1E;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 30px 0;
}

.social-links a {
  color: inherit;
  font-size: 1.5rem;
  transition: color 0.3s;
}

.social-links a:hover {
  color: var(--primary);
}

/* Responsive styles */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .about-content {
    flex-direction: column;
  }

  .nav-links {
    display: none;
  }

  .custom-cursor {
    display: none;
  }

  * {
    cursor: auto !important;
  }
}