/*
Theme Name: Digit1 - SEO & Software Development
Description: A modern, responsive WordPress theme for SEO and software development services with bilingual support (English/Persian).
Author: Digit1 Team
Version: 1.0
Text Domain: digit1
Domain Path: /languages
*/

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* IranSans Font Faces */
@font-face {
  font-family: 'IranSans';
  src: url('./assets/fonts/IRANSansWeb_UltraLight.woff') format('woff');
  font-weight: 200;
  font-style: normal;
}

@font-face {
  font-family: 'IranSans';
  src: url('./assets/fonts/IRANSansWeb_Light.woff') format('woff');
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: 'IranSans';
  src: url('./assets/fonts/IRANSansWeb.woff') format('woff');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'IranSans';
  src: url('./assets/fonts/IRANSansWeb_Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: 'IranSans';
  src: url('./assets/fonts/IRANSansWeb_Bold.woff') format('woff');
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: 'IranSans';
  src: url('./assets/fonts/IRANSansWeb_Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'IranSans';
  src: url('./assets/fonts/IRANSansWeb_Black.woff') format('woff');
  font-weight: 800;
  font-style: normal;
}

@font-face {
  font-family: 'IranSans';
  src: url('./assets/fonts/IRANSansWeb_Black.woff') format('woff');
  font-weight: 900;
  font-style: normal;
}

:root {
  --primary-cyan: #06b6d4;
  --secondary-cyan: #0891b2;
  --accent-green: #10b981;
  --accent-yellow: #fbbf24;
  --accent-coral: #ef4444;
  --text-dark: #1f2937;
  --text-light: #6b7280;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gradient-primary: linear-gradient(135deg, #7dd3fc 0%, #06b6d4 100%);
  --gradient-secondary: linear-gradient(135deg, #34d399 0%, #10b981 100%);
  --gradient-coral: linear-gradient(135deg, #fca5a5 0%, #ef4444 100%);
  --gradient-yellow: linear-gradient(135deg, #fde68a 0%, #fbbf24 100%);
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  overflow-x: hidden;
}

/* Persian/RTL Font */
body.rtl,
.rtl * {
  font-family: 'IranSans', 'Tahoma', sans-serif;
}

body.rtl {
  direction: rtl;
  text-align: right;
}

body.ltr {
  direction: ltr;
  text-align: left;
}

/* Persian Typography Improvements */
.rtl h1, .rtl h2, .rtl h3, .rtl h4, .rtl h5, .rtl h6 {
  font-weight: 600;
  line-height: 1.4;
}

.rtl .hero h1 {
  font-weight: 700;
}

.rtl .section-title {
  font-weight: 700;
}

.rtl .service-card h3,
.rtl .member-name {
  font-weight: 600;
}

.rtl .btn {
  font-weight: 500;
}

/* RTL Layout Adjustments */
.rtl .hero-buttons {
  flex-direction: row-reverse;
}

.rtl .nav-links {
  flex-direction: row-reverse;
}

.rtl .language-toggle {
  flex-direction: row-reverse;
}

/* Container */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Styles */
.site-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-200);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.site-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.site-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-cyan);
  text-decoration: none;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
}

.nav-menu a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-menu a:hover {
  color: var(--primary-cyan);
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-cyan);
  transition: width 0.3s ease;
}

.nav-menu a:hover::after {
  width: 100%;
}

.language-toggle {
  display: flex;
  gap: 0.5rem;
}

.lang-btn {
  padding: 0.5rem 1rem;
  border: 1px solid var(--gray-200);
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--text-dark);
}

.lang-btn.active {
  background: var(--primary-cyan);
  color: white;
  border-color: var(--primary-cyan);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

/* Hero Section */
.hero-section {
  padding: 120px 0 0;
  position: relative;
  overflow: hidden;
}

/* Full Width Pattern */
.hero-pattern-fullwidth {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  position: relative;
  height: 600px;
}

.pattern-background {
  position: relative;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hero Content Overlay */
.hero-content-overlay {
  position: absolute;
  top: 80px;
  left: 0;
  right: 0;
  z-index: 10;
}

.hero-text {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-text h1 {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
  color: white;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-text .subtitle {
  font-size: 1.8rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  color: var(--accent-yellow);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-text .description {
  font-size: 1.2rem;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  max-width: 600px;
  margin: 0 auto;
}

/* Hero Buttons Overlay */
.hero-buttons-overlay {
  position: absolute;
  bottom: 80px;
  left: 0;
  right: 0;
  z-index: 10;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-buttons .btn {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.hero-buttons .btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.hero-buttons .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  color: white;
}

/* Pattern Grid */
.pattern-grid {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.1;
}

.pattern-dot {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--primary-cyan);
  border-radius: 50%;
}

.pattern-dot:nth-child(1) { top: 20%; left: 10%; }
.pattern-dot:nth-child(2) { top: 30%; left: 25%; }
.pattern-dot:nth-child(3) { top: 25%; left: 50%; }
.pattern-dot:nth-child(4) { top: 35%; right: 25%; }
.pattern-dot:nth-child(5) { bottom: 30%; left: 20%; }
.pattern-dot:nth-child(6) { bottom: 40%; right: 15%; }
.pattern-dot:nth-child(7) { top: 60%; left: 45%; }
.pattern-dot:nth-child(8) { bottom: 25%; right: 40%; }

/* Pattern Shapes */
.pattern-shapes {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  pointer-events: none;
}

.shape-circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(6, 182, 212, 0.1);
  animation: shapeFloat 8s ease-in-out infinite;
}

.circle-1 {
  width: 80px;
  height: 80px;
  top: 10%;
  right: 30%;
  animation-delay: -1s;
}

.circle-2 {
  width: 60px;
  height: 60px;
  bottom: 15%;
  left: 30%;
  animation-delay: -3s;
}

.circle-3 {
  width: 100px;
  height: 100px;
  top: 40%;
  left: 8%;
  animation-delay: -5s;
}

.shape-triangle {
  position: absolute;
  width: 0;
  height: 0;
  animation: shapeFloat 10s ease-in-out infinite;
}

.triangle-1 {
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-bottom: 35px solid rgba(16, 185, 129, 0.1);
  top: 60%;
  right: 15%;
  animation-delay: -2s;
}

.triangle-2 {
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-bottom: 25px solid rgba(251, 191, 36, 0.1);
  top: 35%;
  left: 5%;
  animation-delay: -4s;
}

.shape-square {
  position: absolute;
  background: rgba(239, 68, 68, 0.1);
  border-radius: 4px;
  animation: shapeFloat 7s ease-in-out infinite;
}

.square-1 {
  width: 25px;
  height: 25px;
  bottom: 25%;
  right: 40%;
  animation-delay: -1.5s;
  transform: rotate(45deg);
}

.square-2 {
  width: 20px;
  height: 20px;
  top: 70%;
  left: 25%;
  animation-delay: -3.5s;
  transform: rotate(45deg);
}

/* Animations */
@keyframes cardFloat {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-15px);
  }
}

@keyframes shapeFloat {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

.btn {
  padding: 1rem 2rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.btn-primary {
  background: var(--gradient-coral);
  color: white;
}

.btn-primary:hover {
  background: var(--accent-coral);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--primary-cyan);
  border: 2px solid var(--primary-cyan);
}

.btn-secondary:hover {
  background: var(--primary-cyan);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(6, 182, 212, 0.3);
}

/* Section Styles */
.section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* Team Cards Section */
.team-cards-section {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  position: relative;
  margin-top: 0;
  margin-bottom: 0;
}

.team-cards-background {
  position: relative;
  width: 100%;
  background: var(--white);
  padding: 80px 0;
  overflow: hidden;
}

/* Team Cards in Section */
.team-cards-section .floating-cards {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 3rem;
  position: relative;
  z-index: 2;
}

.team-cards-section .team-card {
  position: relative;
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--gray-200);
  min-width: 200px;
  max-width: 280px;
  animation: cardFloat 6s ease-in-out infinite;
  transition: all 0.3s ease;
}

.team-cards-section .team-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.team-cards-section .card-1 {
  animation-delay: 0s;
}

.team-cards-section .card-2 {
  animation-delay: -2s;
}

.team-cards-section .card-3 {
  animation-delay: -4s;
}

.card-avatar {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  margin: 0 auto 1rem;
  position: relative;
  overflow: hidden;
}

.avatar-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 12px;
}

.developer .avatar-bg {
  background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
}

.designer .avatar-bg {
  background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%);
}

.seo .avatar-bg {
  background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
}

.avatar-person {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 24px;
  z-index: 2;
}

.card-info {
  text-align: center;
}

.card-info h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.card-info p {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* Services Section */
.services {
  background: var(--gray-50);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: none;
}

.service-card {
  background: white;
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1.5rem;
  background: var(--gradient-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.service-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.service-card p {
  color: var(--text-light);
  line-height: 1.6;
}

/* About Section */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.about-text p {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.stat-item {
  text-align: center;
  padding: 1.5rem;
  background: var(--gray-50);
  border-radius: 8px;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-cyan);
  display: block;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-top: 0.5rem;
}

/* Team Section */
.team {
  background: var(--gray-50);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: none;
}

/* Testimonials Section */
.testimonials {
  background: var(--gray-50);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  max-width: none;
}

.testimonial-card {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Contact Section */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.contact-info p {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.contact-form {
  background: white;
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-dark);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-cyan);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

.form-group textarea {
  height: 120px;
  resize: vertical;
}

/* Footer */
.site-footer {
  background: var(--text-dark);
  color: white;
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-section p {
  color: var(--gray-200);
  line-height: 1.6;
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 1rem;
  text-align: center;
  color: var(--gray-200);
}

/* Responsive Design */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }
  
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  }
  
  .nav-menu.active {
    display: flex;
  }
  
  .hero-pattern-fullwidth {
    height: 500px;
  }
  
  .hero-content-overlay {
    top: 60px;
  }
  
  .hero-text h1 {
    font-size: 2.8rem;
  }
  
  .hero-text .subtitle {
    font-size: 1.3rem;
  }
  
  .hero-text .description {
    font-size: 1rem;
  }
  
  .hero-buttons-overlay {
    bottom: 40px;
  }
  
  .team-cards-background {
    padding: 60px 0;
  }
  
  .team-cards-section .floating-cards {
    gap: 1.5rem;
    margin-top: 2rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }
  
  .hero-section {
    padding: 100px 0 0;
  }
  
  .hero-pattern-fullwidth {
    height: 450px;
  }
  
  .hero-content-overlay {
    top: 40px;
  }
  
  .hero-text h1 {
    font-size: 2.2rem;
  }
  
  .hero-text .subtitle {
    font-size: 1.1rem;
  }
  
  .hero-text .description {
    font-size: 0.95rem;
    padding: 0 1rem;
  }
  
  .hero-buttons-overlay {
    bottom: 30px;
  }
  
  .team-cards-background {
    padding: 40px 0;
  }
  
  .team-cards-section .floating-cards {
    gap: 1rem;
    margin-top: 1.5rem;
  }
  
  .team-cards-section .team-card {
    min-width: 160px;
    padding: 1rem;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .service-card,
  .testimonial-card,
  .contact-form {
    padding: 1.5rem;
  }
}

/* Animation Classes */
.fade-in {
  animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
