/* Template 1: TMG Signature Style - Modern Professional Design */

:root {
  --primary-dark: #0f172a;
  --primary-light: #1e293b;
  --accent-purple: #a78bfa;
  --accent-violet: #8b5cf6;
  --accent-pink: #ec4899;
  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --white: #ffffff;
  --card-bg: #1e293b;
  --card-bg-alt: #1a2538;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--primary-dark);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Splash Loader */
.splash-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary-dark);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.splash-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

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

.logo-text {
  font-size: 4rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--accent-purple);
  text-transform: uppercase;
  animation: fadeInUp 0.8s ease;
}

.loader-dots {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 2rem;
}

.loader-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-purple);
  animation: bounce 1.4s infinite ease-in-out;
}

.loader-dots span:nth-child(1) { animation-delay: -0.32s; }
.loader-dots span:nth-child(2) { animation-delay: -0.16s; }
.loader-dots span:nth-child(3) { animation-delay: 0s; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
  0%, 80%, 100% { transform: scale(0); opacity: 0.5; }
  40% { transform: scale(1); opacity: 1; }
}

/* Navbar */
.navbar-modern {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(167, 139, 250, 0.1);
  z-index: 1000;
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.navbar-modern.scrolled {
  background: rgba(15, 23, 42, 0.95);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-link {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-purple);
  text-decoration: none;
  letter-spacing: 0.05em;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  width: 25px;
  height: 2px;
  background: var(--accent-purple);
  transition: all 0.3s ease;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-purple);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--accent-purple);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-cta {
  border: 1px solid var(--accent-purple);
  padding: 0.5rem 1.5rem;
  border-radius: 4px;
}

.nav-cta::after {
  display: none;
}

.nav-cta:hover {
  background: rgba(167, 139, 250, 0.1);
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 2rem 4rem;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.gradient-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.98) 100%);
  z-index: 1;
}

.grid-pattern {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(167, 139, 250, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(167, 139, 250, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: 1;
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(50px, 50px); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background: rgba(167, 139, 250, 0.1);
  border: 1px solid rgba(167, 139, 250, 0.3);
  border-radius: 50px;
  color: var(--accent-purple);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 2rem;
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 2rem;
}

.title-main {
  color: var(--white);
  display: block;
}

.title-sub {
  color: var(--accent-purple);
  font-size: 0.6em;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: block;
}

.hero-description {
  font-size: 1.25rem;
  color: var(--text-primary);
  line-height: 1.8;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-description strong {
  color: var(--accent-purple);
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.btn {
  padding: 1rem 2.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  display: inline-block;
}

.btn-primary-modern {
  background: var(--accent-purple);
  color: var(--primary-dark);
}

.btn-primary-modern:hover {
  background: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(167, 139, 250, 0.3);
}

.btn-secondary-modern {
  background: transparent;
  color: var(--accent-purple);
  border: 1px solid var(--accent-purple);
}

.btn-secondary-modern:hover {
  background: rgba(167, 139, 250, 0.1);
  transform: translateY(-2px);
}

.hero-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(167, 139, 250, 0.1);
}

.hero-footer-text {
  color: var(--text-primary);
  font-size: 0.95rem;
}

.hero-footer-text i {
  color: var(--accent-purple);
  margin: 0 0.5rem;
}

/* Sections */
.section {
  padding: 6rem 2rem;
  position: relative;
}

.section-alt {
  background: var(--card-bg-alt);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--accent-purple);
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-primary);
  max-width: 700px;
  margin: 0 auto;
  background: rgba(30, 41, 59, 0.4);
  padding: 1rem 2rem;
  border-radius: 8px;
  display: inline-block;
}

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

.service-card {
  background: var(--card-bg);
  border: 2px solid rgba(167, 139, 250, 0.3);
  border-radius: 8px;
  padding: 2.5rem;
  transition: all 0.3s ease;
}

.service-card:hover {
  border-color: rgba(167, 139, 250, 0.5);
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.service-icon {
  font-size: 3rem;
  color: var(--accent-purple);
  margin-bottom: 1.5rem;
  text-align: center;
}

.service-title {
  font-size: 1.75rem;
  color: var(--white);
  margin-bottom: 1rem;
  text-align: center;
}

.service-description {
  color: var(--text-primary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  text-align: center;
}

.service-features {
  list-style: none;
  padding: 0;
}

.service-features li {
  color: var(--text-primary);
  padding: 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.service-features i {
  color: var(--accent-purple);
}

/* About */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text {
  color: var(--text-primary);
  font-size: 1.125rem;
  line-height: 1.8;
}

.about-text strong {
  color: var(--accent-purple);
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.stat-item {
  text-align: center;
  padding: 2rem;
  background: var(--card-bg);
  border-radius: 8px;
  border: 2px solid rgba(167, 139, 250, 0.2);
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent-purple);
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--text-primary);
  font-size: 1rem;
}

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

.portfolio-item {
  background: var(--card-bg);
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid rgba(167, 139, 250, 0.2);
  transition: all 0.3s ease;
}

.portfolio-item:hover {
  transform: translateY(-8px);
  border-color: rgba(167, 139, 250, 0.4);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.portfolio-image {
  height: 250px;
  background: var(--card-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
}

.portfolio-placeholder {
  font-size: 4rem;
  color: var(--accent-purple);
  opacity: 0.3;
}

.portfolio-info {
  padding: 2rem;
}

.portfolio-info h3 {
  color: var(--white);
  margin-bottom: 0.5rem;
}

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

/* Contact */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.contact-item i {
  font-size: 1.5rem;
  color: var(--accent-purple);
  margin-top: 0.5rem;
}

.contact-item h4 {
  color: var(--white);
  margin-bottom: 0.5rem;
}

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

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  background: var(--primary-dark);
  border: 2px solid rgba(167, 139, 250, 0.3);
  border-radius: 4px;
  color: var(--text-primary);
  font-size: 1rem;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-purple);
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-secondary);
}

/* Footer */
.footer {
  background: var(--card-bg-alt);
  padding: 4rem 2rem 2rem;
  border-top: 1px solid rgba(167, 139, 250, 0.1);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-section p {
  color: var(--text-primary);
  line-height: 1.7;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.75rem;
}

.footer-section ul li a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: var(--accent-purple);
}

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

.social-links a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card-bg);
  border: 2px solid rgba(167, 139, 250, 0.2);
  border-radius: 50%;
  color: var(--accent-purple);
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: rgba(167, 139, 250, 0.1);
  border-color: var(--accent-purple);
  transform: translateY(-2px);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(167, 139, 250, 0.1);
  text-align: center;
}

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

/* Fade-in animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }
  
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.98);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  
  .nav-menu.active {
    max-height: 400px;
  }
  
  .nav-list {
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
  }
  
  .hero-actions {
    flex-direction: column;
  }
  
  .about-content {
    grid-template-columns: 1fr;
  }
  
  .about-stats {
    grid-template-columns: 1fr;
  }
  
  .contact-content {
    grid-template-columns: 1fr;
  }
  
  .section {
    padding: 4rem 1rem;
  }
}

