/* Base Styles */
:root {
  --primary-color: #2196F3;
  --primary-hover: #1976D2;
  --secondary-color: #FF4081;
  --text-color: #212121;
  --text-color-light: #666666;
  --border-color: #e0e0e0;
  --bg-color: #FFFFFF;
  --bg-color-light: #f5f5f5;
  --border-radius: 8px;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--bg-color);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

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

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

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

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

/* Utility Classes */
.text-center {
  text-align: center;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.items-start {
  align-items: flex-start;
}

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

.justify-between {
  justify-content: space-between;
}

.justify-end {
  justify-content: flex-end;
}

.gap-1 {
  gap: 0.25rem;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-4 {
  gap: 1rem;
}

.gap-6 {
  gap: 1.5rem;
}

.gap-8 {
  gap: 2rem;
}

.w-full {
  width: 100%;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.mb-12 {
  margin-bottom: 3rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mt-8 {
  margin-top: 2rem;
}

.mt-12 {
  margin-top: 3rem;
}

.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.py-8 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.py-16 {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.p-4 {
  padding: 1rem;
}

.p-6 {
  padding: 1.5rem;
}

.p-8 {
  padding: 2rem;
}

.bg-white {
  background-color: var(--bg-color);
}

.bg-light {
  background-color: var(--bg-color-light);
}

.bg-primary {
  background-color: var(--primary-color);
  color: white;
}

.text-white {
  color: white;
}

.text-primary {
  color: var(--primary-color);
}

.text-gray {
  color: var(--text-color-light);
}

.font-medium {
  font-weight: 500;
}

.font-semibold {
  font-weight: 600;
}

.font-bold {
  font-weight: 700;
}

.rounded {
  border-radius: var(--border-radius);
}

.rounded-full {
  border-radius: 9999px;
}

.shadow {
  box-shadow: var(--shadow);
}

.border {
  border: 1px solid var(--border-color);
}

.hidden {
  display: none;
}

.grid {
  display: grid;
}

.grid-cols-1 {
  grid-template-columns: 1fr;
}

/* Components */
/* Header & Navigation */
.header {
  background-color: var(--bg-color);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-color);
}

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

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

.menu {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.menu-link {
  color: var(--text-color);
  font-weight: 500;
  transition: var(--transition);
}

.menu-link:hover {
  color: var(--primary-color);
}

.menu-button {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-color);
  cursor: pointer;
}

/* Hero Section */
.hero {
  background: linear-gradient(to bottom right, #e6f4ff, #fff0f7);
  padding: 4rem 0;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

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

.hero-text p {
  font-size: 1.125rem;
  color: var(--text-color-light);
  margin-bottom: 2rem;
}

.hero-image img {
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-align: center;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
  box-shadow: 0 2px 4px rgba(33, 150, 243, 0.3);
}

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

.btn-block {
  display: flex;
  width: 100%;
  justify-content: center;
}

/* Color Picker Section */
.color-tool {
  padding: 4rem 0;
}

.color-picker-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.color-picker {
  background-color: var(--bg-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

.color-swatch {
  width: 100%;
  height: 150px;
  border-radius: var(--border-radius);
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-color);
}

.rgb-values {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.rgb-value {
  background-color: var(--bg-color-light);
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  font-family: 'Inter', monospace;
  font-weight: 500;
  flex: 1;
  text-align: center;
}

.slider-container {
  margin-bottom: 1rem;
}

.slider-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.slider {
  width: 100%;
  -webkit-appearance: none;
  height: 8px;
  border-radius: 4px;
  background-color: var(--bg-color-light);
  outline: none;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--primary-color);
  cursor: pointer;
  border: 2px solid white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.slider-red {
  background: linear-gradient(to right, #ff0000 0%, #ff0000 100%);
}

.slider-green {
  background: linear-gradient(to right, #00ff00 0%, #00ff00 100%);
}

.slider-blue {
  background: linear-gradient(to right, #0000ff 0%, #0000ff 100%);
}

.hex-value {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--bg-color-light);
  padding: 0.75rem 1rem;
  border-radius: var(--border-radius);
  margin-top: 1.5rem;
}

.hex-code {
  font-family: 'Inter', monospace;
  font-weight: 500;
  flex: 1;
}

.copy-btn {
  background: none;
  border: none;
  color: var(--primary-color);
  cursor: pointer;
  font-size: 1.25rem;
  transition: var(--transition);
}

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

/* Color Preview Section */
.color-preview {
  margin-bottom: 1.5rem;
}

.preview-card {
  background-color: var(--bg-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.color-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.color-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
}

.preview-content {
  padding: 1rem;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
}

.bg-preview {
  border: none;
}

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

.about-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .about-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.about-card {
  background-color: var(--bg-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  height: 100%;
}

.about-card .icon {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

/* Contact Section */
.contact-section {
  padding: 4rem 0;
}

.contact-form {
  background-color: var(--bg-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  margin-top: 2rem;
}

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

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

.form-input, .form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  transition: var(--transition);
}

.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.2);
}

.form-textarea {
  resize: vertical;
  min-height: 150px;
}

.form-error {
  color: #d32f2f;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* Footer */
.footer {
  background-color: var(--bg-color-light);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-col h3 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.footer-links {
  list-style: none;
}

.footer-link {
  margin-bottom: 0.5rem;
}

.footer-link a {
  color: var(--text-color-light);
  transition: var(--transition);
}

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

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

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: var(--transition);
}

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

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
  text-align: center;
  color: var(--text-color-light);
  font-size: 0.875rem;
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  background-color: var(--bg-color);
  border-radius: var(--border-radius);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 1rem;
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.toast-message {
  font-size: 0.875rem;
  color: var(--text-color-light);
}

/* Media Queries */
@media (min-width: 640px) {
  .grid-cols-2 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr 1fr;
  }

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

  .grid-cols-3 {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .color-picker-container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--bg-color);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    z-index: 100;
  }

  .menu.active {
    display: flex;
  }

  .menu-button {
    display: block;
  }
}

/* Page Styles */
.page-header {
  background: linear-gradient(to right, #e6f4ff, #e6f4ff);
  padding: 4rem 0;
  text-align: center;
}

.page-content {
  padding: 4rem 0;
}

.page-content .container {
  max-width: 800px;
}

/* Legal Pages */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

.legal-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.legal-content ul {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.legal-date {
  font-size: 0.875rem;
  color: var(--text-color-light);
  margin-bottom: 2rem;
}

/* Sitemap */
.sitemap-card {
  background-color: var(--bg-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

.sitemap-list {
  list-style: none;
}

.sitemap-list li {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}

.sitemap-list i {
  color: var(--primary-color);
  margin-right: 0.5rem;
}

/* Developer Page */
.developer-card {
  background-color: var(--bg-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 3rem;
}

.developer-header {
  background-color: var(--primary-color);
  padding: 1.5rem;
  display: flex;
  justify-content: center;
}

.developer-photo {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  border: 4px solid white;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.developer-info {
  padding: 2rem;
}

.developer-info h3 {
  margin-bottom: 0.5rem;
}

.developer-role {
  color: var(--text-color-light);
  margin-bottom: 1rem;
}

.developer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.developer-social a {
  font-size: 1.5rem;
  color: var(--text-color-light);
  transition: var(--transition);
}

.developer-social a:hover {
  color: var(--primary-color);
}

.skill-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.skill-card {
  background-color: var(--bg-color-light);
  border-radius: var(--border-radius);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.skill-card i {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

/* Contact page */
.contact-info {
  margin-bottom: 2rem;
}

.contact-method {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-method i {
  font-size: 1.5rem;
  color: var(--primary-color);
}

.contact-method-text h3 {
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}

.contact-method-text p {
  color: var(--text-color-light);
}

/* Page Transitions */
.page {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  display: none;
}

.page.active {
  opacity: 1;
  transform: translateY(0);
  display: block;
}

/* For pages with content */
.main-content {
  min-height: 70vh;
}

/* Grid Templates */
.grid {
  display: grid;
}

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

@media (min-width: 768px) {
  .grid-template-columns-2fr {
    grid-template-columns: 1fr 1fr;
  }
}