/*
Theme Name: Freelancer Portfolio
Theme URI: https://example.com
Author: Your Name
Author URI: https://example.com
Description: A modern freelancer portfolio theme
Version: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: freelancer-portfolio
Domain Path: /languages
*/

@tailwind base;
@tailwind components;
@tailwind utilities;

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: #1f2937;
  line-height: 1.6;
}

.container-wrapper {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container-wrapper {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container-wrapper {
    padding: 0 2rem;
  }
}

/* Navigation */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
  z-index: 50;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.site-header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 4rem;
}

.site-logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #111;
  text-decoration: none;
}

.main-nav {
  display: none;
  gap: 2rem;
}

.main-nav a {
  color: #4b5563;
  text-decoration: none;
  transition: color 0.2s;
}

.main-nav a:hover {
  color: #111;
}

@media (min-width: 768px) {
  .main-nav {
    display: flex;
  }

  .mobile-menu-toggle {
    display: none !important;
  }
}

.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #4b5563;
}

.mobile-menu {
  display: none;
}

.mobile-menu.active {
  display: block;
  background: white;
  border-top: 1px solid #e5e7eb;
  padding: 0.75rem 1rem;
}

.mobile-menu a {
  display: block;
  color: #4b5563;
  text-decoration: none;
  padding: 0.75rem 0;
  transition: color 0.2s;
}

.mobile-menu a:hover {
  color: #111;
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to bottom right, #f9fafb, #f3f4f6);
  padding-top: 4rem;
  padding-bottom: 5rem;
}

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

.hero-avatar {
  width: 8rem;
  height: 8rem;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: linear-gradient(to bottom right, #10b981, #14b8a6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
  font-weight: bold;
}

.hero-title {
  font-size: clamp(2rem, 8vw, 3.5rem);
  font-weight: bold;
  color: #111;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-gradient {
  background: linear-gradient(to right, #059669, #0d9488);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: #4b5563;
  margin-bottom: 3rem;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.button-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 3rem;
}

@media (min-width: 640px) {
  .button-group {
    flex-direction: row;
  }
}

.btn {
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
  display: inline-block;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: #111;
  color: white;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
  background: #1f2937;
  box-shadow: 0 20px 25px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.btn-secondary {
  background: white;
  color: #111;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
}

.btn-secondary:hover {
  background: #f9fafb;
  box-shadow: 0 20px 25px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.social-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

.social-links a {
  color: #4b5563;
  transition: color 0.2s;
}

.social-links a:hover {
  color: #111;
}

/* Generic Section */
section {
  padding: 5rem 0;
}

.section-title {
  font-size: 2.25rem;
  font-weight: bold;
  color: #111;
  margin-bottom: 3rem;
  text-align: center;
}

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.service-card {
  padding: 2rem;
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.3s;
}

.service-card:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  transform: translateY(-4px);
}

.service-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #111;
}

.service-card p {
  color: #6b7280;
  line-height: 1.6;
}

/* Portfolio Section */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.portfolio-item {
  overflow: hidden;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.3s;
}

.portfolio-item:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  transform: translateY(-4px);
}

.portfolio-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.portfolio-content {
  padding: 1.5rem;
  background: white;
}

.portfolio-content h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #111;
}

.portfolio-content p {
  color: #6b7280;
  font-size: 0.875rem;
}

/* Testimonials Section */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  padding: 2rem;
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.testimonial-text {
  color: #4b5563;
  margin-bottom: 1.5rem;
  line-height: 1.6;
  font-style: italic;
}

.testimonial-author {
  font-weight: 600;
  color: #111;
  margin-bottom: 0.25rem;
}

.testimonial-role {
  color: #6b7280;
  font-size: 0.875rem;
}

/* Contact Section */
.contact-content {
  max-width: 42rem;
  margin: 0 auto;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #111;
}

.form-group input,
.form-group textarea {
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

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

/* Footer */
.site-footer {
  background: #111;
  color: white;
  padding: 3rem 0 1.5rem;
}

.footer-content {
  margin-bottom: 2rem;
  text-align: center;
  color: #d1d5db;
}

.footer-links {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: #d1d5db;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 1.5rem;
  text-align: center;
  color: #9ca3af;
  font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 640px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  section {
    padding: 3rem 0;
  }

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