/* Base Styles */
:root {
  --primary-color: #0078D4;
  --primary-dark: #106EBE;
  --primary-light: #eff6fc;
  --text-primary: #323130;
  --text-secondary: #605E5C;
  --navbar:#fdfdfdb7;
  --background: #FFFFFF;
  --surface: #F3F2F1;
  --error: #A80000;
  --success: #107C10;
  --warning: #797673;
  --shadow: 0 1.6px 3.6px 0 rgba(0, 0, 0, 0.132), 0 0.3px 0.9px 0 rgba(0, 0, 0, 0.108);
  --shadow-hover: 0 3.2px 7.2px 0 rgba(0, 0, 0, 0.132), 0 0.6px 1.8px 0 rgba(0, 0, 0, 0.108);
  --transition: all 0.3s ease;
}

[data-theme="dark"] {
  --primary-color: #0078D4;
  --primary-dark: #106EBE;
  --primary-light: #151b21;
  --text-primary: #FFFFFF;
  --navbar:#1a1a1ab3;
  --text-secondary: #A19F9D;
  --background: #1A1A1A;
  --surface: #252423;
  --error: #F1707B;
  --success: #92C353;
  --warning: #F3D3A1;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--background);
  transition: var(--transition);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 80px 0;
}

h1, h2, h3, h4 {
  margin-bottom: 1rem;
  font-weight: 600;
  line-height: 1.2;
}

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

img {
  max-width: 100%;
  height: auto;
}

/* Button Styles */
.fabric-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 2px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
}

.fabric-button--primary {
  background-color: var(--primary-color);
  color: white;
}

.fabric-button--primary:hover {
  background-color: var(--primary-dark);
  box-shadow: var(--shadow-hover);
  color: white;
}

.fabric-button--secondary {
  background-color: transparent;
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.fabric-button--secondary:hover {
  background-color: rgba(0, 157, 255, 0.063);
}

.fabric-button--small {
  padding: 4px 8px;
  font-size: 12px;
}

.fabric-button--social {
  margin-right: 8px;
  margin-bottom: 8px;
  background-color: var(--surface);
  color: var(--text-primary);
}

.fabric-button--social:hover {
  background-color: var(--primary-light);
}

/* Card Styles */
.fabric-card {
  background-color: var(--surface);
  border-radius: 4px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.fabric-card:hover {
  box-shadow: var(--shadow-hover);
}

/* Navigation */
.fabric-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  background-color: var(--navbar);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: var(--transition);
}

.fabric-nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
 max-height: 25px;
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 20px;
}

nav ul li a {
  color: var(--text-primary);
  font-weight: 500;
  padding: 8px 0;
  position: relative;
}

nav ul li a:hover {
  color: var(--primary-color);
}

nav ul li a:hover:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
}

#theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  margin-left: 20px;
  font-size: 20px;
}

#theme-toggle .dark-icon {
  display: none;
}

[data-theme="dark"] #theme-toggle .light-icon {
  display: none;
}

[data-theme="dark"] #theme-toggle .dark-icon {
  display: inline;
}

/* Hero Section */
.hero {
  padding-top: 150px;
  background-color: var(--primary-light);
}

.hero .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-content {
  flex: 1;
  padding-right: 40px;
}

.hero-content h2 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.hero-subtitle {
  font-size: 18px;
  margin-bottom: 30px;
  color: var(--text-secondary);
}

.hero-actions {
  display: flex;
  gap: 15px;
}

.hero-image {
  flex: 1;
  text-align: center;
}

/* Services Section */
.section-title {
  text-align: center;
  font-size: 36px;
  margin-bottom: 50px;
  position: relative;
}

.section-title:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--primary-color);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.service-card {
  text-align: center;
  padding: 30px 20px;
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: var(--primary-light);
}

.service-card h3 {
  font-size: 20px;
  margin-bottom: 15px;
}

/* Portfolio Section */
.portfolio-filter {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
  gap: 10px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.portfolio-grid2 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.portfolio-item2 {
  position: relative;
  overflow: hidden;
  height: 300px;
}

.portfolio-item2 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.portfolio-overlay {
  position: absolute;
  bottom: -100%;
  left: 0;
  width: 100%;
  padding: 20px;
  background-color: rgba(0, 120, 212, 0.434);
  backdrop-filter: blur(15px);
  color: white;
  transition: var(--transition);
}

.portfolio-item2:hover .portfolio-overlay {
  bottom: 0;
}

.portfolio-item2:hover img {
  transform: scale(1.05);
}

.portfolio-overlay h3 {
  color: white;
}

.portfolio-overlay p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 15px;
}

/* About Section */
.about .container {
  display: flex;
  align-items: center;
  gap: 50px;
}

.about-content {
  flex: 1;
}

.about-image {
  flex: 1;
}

.about-image img {
  border-radius: 4px;
  box-shadow: var(--shadow-hover);
}

.stats {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
}

.stat {
  text-align: center;
}

.stat h4 {
  font-size: 36px;
  color: var(--primary-color);
}

/* Technologies Section */
.tech-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 50px;
}

.tech-item {
  text-align: center;
  padding: 20px;
  transition: var(--transition);
}

.tech-item:hover {
  transform: translateY(-5px);
}

.tech-item img {
  width: 80px;
  height: 80px;
  margin-bottom: 10px;
  object-fit: contain;
}

.tech-item p {
  font-weight: 600;
}

/* Contact Section */
.contact-container {
  display: flex;
  gap: 50px;
  margin-top: 40px;
}

.contact-info img:hover {
  opacity: 70%;
}

.contact-info {
  flex: 1;
}

.contact-form {
  flex: 1;
  padding: 30px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.fabric-input {
  width: 100%;
  padding: 8px 12px;
  margin: 5px;
  border: 1px solid var(--text-secondary);
  border-radius: 2px;
  background-color: var(--background);
  color: var(--text-primary);
  transition: var(--transition);
}

.fabric-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(0, 120, 212, 0.3);
}

textarea.fabric-input {
  min-height: 120px;
  resize: vertical;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  margin-top: 20px;
}

/* Footer */
.fabric-footer {
  background-color: var(--surface);
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.footer-logo svg {
  margin-right: 10px;
}

.footer-logo h3 {
  font-size: 20px;
}

.footer-logo h3 span {
  color: var(--primary-color);
}

.footer-links h4,
.footer-services h4,
.footer-newsletter h4 {
  margin-bottom: 20px;
  font-size: 18px;
}

.footer-links ul,
.footer-services ul {
  list-style: none;
}

.footer-links li,
.footer-services li {
  margin-bottom: 10px;
}

.footer-links a,
.footer-services a {
  color: var(--text-secondary);
}

.footer-links a:hover,
.footer-services a:hover {
  color: var(--primary-color);
}

.newsletter-form {
  display: flex;
  margin-top: 15px;
}

.newsletter-form .fabric-input {
  flex: 1;
  margin-right: 10px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid var(--text-secondary);
}

.legal-links {
  display: flex;
  gap: 20px;
}

.legal-links a {
  color: var(--text-secondary);
}

.legal-links a:hover {
  color: var(--primary-color);
}

/* Responsive Styles */
@media (max-width: 992px) {
  .hero .container,
  .about .container {
      flex-direction: column;
  }
  
  .hero-content,
  .about-content {
      padding-right: 0;
      margin-bottom: 40px;
  }
  
  .contact-container {
      flex-direction: column;
  }
}

@media (max-width: 768px) {
  nav ul {
      position: fixed;
      top: 70px;
      left: -100%;
      width: 100%;
      height: calc(100vh - 70px);
      background-color: var(--background);
      flex-direction: column;
      align-items: center;
      padding-top: 40px;
      transition: var(--transition);
  }
  
  nav ul.active {
      left: 0;
  }
  
  nav ul li {
      margin: 15px 0;
  }
  
  .mobile-menu-btn {
      display: block;
  }
  
  .hero-content h2 {
      font-size: 36px;
  }
  
  .section-title {
      font-size: 30px;
  }
}

@media (max-width: 576px) {
  .hero-actions {
      flex-direction: column;
  }
  
  .stats {
      flex-direction: column;
      gap: 20px;
  }
  
  .footer-bottom {
      flex-direction: column;
      text-align: center;
      gap: 15px;
  }
  
  .legal-links {
      justify-content: center;
  }
}

/* Creative Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 80px;
  right: 0px;
  width: 60px;
  height: 60px;
  background: #0078d4;
  border-radius: 50px 0px 0px 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: white;
  font-weight: bold;
  box-shadow: 0 4px 15px rgba(0, 120, 212, 0.3);
  opacity: 0;
  transform: translateY(100px);
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  z-index: 100;
  overflow: hidden;
}

/* Show button when anchor target is not top */
:not(:target) .back-to-top {
  opacity: 1;
  transform: translateY(0);
}

.arrow {
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 15px solid white;
  margin-bottom: 5px;
  transition: all 0.3s ease;
}

.text {
  font-size: 12px;
  transform: translateY(5px);
  transition: all 0.3s ease;
}

.bubble {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  top: 0;
  left: 0;
  transform: scale(0);
  transition: transform 0.3s ease;
}

/* Hover Effects */
.back-to-top:hover {
  background: #106ebe;
  transform: scale(1.1) translateY(-5px);
}

.back-to-top:hover .arrow {
  transform: translateY(-3px);
}

.back-to-top:hover .text {
  transform: translateY(2px);
}

.back-to-top:hover .bubble {
  transform: scale(1);
}

/* Pulse Animation */
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 120, 212, 0.7); }
  70% { box-shadow: 0 0 0 15px rgba(0, 120, 212, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 120, 212, 0); }
}

.back-to-top {
  animation: pulse 2s infinite;
}

/* Dark Mode Support */
[data-theme="dark"] .back-to-top {
  background: #60a7ff;
  box-shadow: 0 4px 15px rgba(96, 168, 255, 0.3);
}

[data-theme="dark"] .back-to-top:hover {
  background: #4d8eff;
}

[data-theme="dark"] .arrow {
  border-bottom-color: #1a1a1a;
}