/* ============================================
   MODERN PROFESSIONAL UI REDESIGN
   Visionary Matrix Tech Solutions
   NO GRADIENTS - SOLID COLORS ONLY
   ============================================ */

/* === ROOT VARIABLES === */
:root {
  /* Primary Colors */
  --primary-blue: #2563eb;
  --primary-blue-dark: #1e40af;
  --primary-blue-light: #3b82f6;
  --tech-red: #dc2626;
  --tech-red-dark: #b91c1c;
  
  /* Neutral Colors */
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-light: #64748b;
  --background-white: #ffffff;
  --background-light: #f8fafc;
  --background-gray: #f1f5f9;
  --border-color: #e2e8f0;
  
  /* Accent Colors */
  --success-color: #10b981;
  --warning-color: #f59e0b;
  
  /* Shadows */
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  
  /* Transitions */
  --transition-fast: all 0.2s ease;
  --transition-normal: all 0.3s ease;
  --transition-slow: all 0.4s ease;
}

/* === GLOBAL RESETS === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

html {
  scroll-behavior: smooth;
}

/* === HEADER STYLING === */
.header {
  background-color: var(--background-white);
  box-shadow: var(--shadow-sm);
  padding: 12px 0;
  z-index: 1000;
}

.header .logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: var(--transition-normal);
}

.header .logo:hover {
  opacity: 0.9;
}

.header .logo img {
  height: 45px;
  width: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

.header .logo:hover img {
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
}

.header .sitename {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
  white-space: nowrap;
}

.vm-color {
  color: var(--primary-blue);
}

.tech-color {
  color: var(--tech-red);
}

/* === HERO SECTION === */
.hero {
  padding: 120px 0 80px;
  background-color: var(--background-light);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 100%;
  background-color: rgba(37, 99, 235, 0.03);
  border-radius: 0 0 0 100%;
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-logo-wrapper {
  margin-bottom: 24px;
}

.hero-logo {
  max-width: 150px;
  height: auto;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  transition: var(--transition-normal);
}

.hero-logo:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-xl);
}

.hero-title {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.hero-description {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 600px;
}

.hero-image-wrapper {
  position: relative;
  text-align: center;
}

.hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: var(--shadow-xl);
  transition: var(--transition-slow);
}

.hero-image:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

/* === SECTION TITLE === */
.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 42px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: var(--primary-blue);
  border-radius: 2px;
}

.section-title p {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 20px auto 0;
  line-height: 1.7;
}

/* === ABOUT SECTION === */
.about {
  padding: 100px 0;
  background-color: var(--background-white);
}

.about-image-wrapper {
  position: relative;
  margin-bottom: 30px;
}

.about-image {
  width: 100%;
  border-radius: 16px;
  box-shadow: var(--shadow-xl);
  transition: var(--transition-normal);
}

.about-image:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.about-content {
  padding-left: 20px;
}

.about-content .content-block {
  margin-bottom: 32px;
}

.about-content h3 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  position: relative;
  padding-left: 16px;
}

.about-content h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 28px;
  background-color: var(--primary-blue);
  border-radius: 2px;
}

.about-content p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.vision-mission-item {
  padding: 20px;
  background-color: var(--background-light);
  border-radius: 12px;
  border-left: 4px solid var(--primary-blue);
  transition: var(--transition-normal);
}

.vision-mission-item:hover {
  background-color: var(--background-gray);
  transform: translateX(5px);
  box-shadow: var(--shadow-md);
}

.vision-title,
.mission-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.vision-title i,
.mission-title i {
  font-size: 20px;
}

.vision-mission-item h4 {
  margin-bottom: 8px;
}

.vision-mission-item p {
  margin: 0;
  font-size: 15px;
}

.values-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.values-list li {
  padding: 12px 0;
  font-size: 15px;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-fast);
}

.values-list li:last-child {
  border-bottom: none;
}

.values-list li:hover {
  padding-left: 8px;
  color: var(--text-primary);
}

.values-list i {
  color: var(--success-color);
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.values-list strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* === SERVICES SECTION === */
.services {
  padding: 100px 0;
  background-color: var(--background-light);
}

.service-card {
  background-color: var(--background-white);
  border-radius: 16px;
  padding: 40px;
  height: 100%;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: var(--primary-blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition-normal);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-blue);
}

.service-icon {
  width: 80px;
  height: 80px;
  background-color: var(--primary-blue);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--background-white);
  font-size: 36px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
  background-color: var(--primary-blue-dark);
  box-shadow: var(--shadow-lg);
}

.service-card h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.service-card p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0;
}

/* === CONTACT SECTION === */
.contact {
  padding: 100px 0;
  background-color: var(--background-white);
}

.contact-info-wrapper {
  background-color: var(--primary-blue);
  padding: 40px;
  border-radius: 16px;
  color: var(--background-white);
  box-shadow: var(--shadow-xl);
  height: 100%;
}

.contact-info-title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 24px;
  color: var(--background-white);
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition-normal);
}

.contact-info-item:hover {
  background-color: rgba(255, 255, 255, 0.15);
  transform: translateX(5px);
}

.contact-icon {
  width: 48px;
  height: 48px;
  background-color: var(--background-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon i {
  font-size: 20px;
  color: var(--primary-blue);
}

.contact-details h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--background-white);
}

.contact-details p,
.contact-details a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  line-height: 1.6;
  text-decoration: none;
}

.contact-details a:hover {
  color: var(--background-white);
  text-decoration: underline;
}

.map-wrapper {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  height: 250px;
  margin-top: 24px;
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* === CONTACT FORM === */
.contact-form-wrapper {
  background-color: var(--background-white);
  padding: 40px;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  height: 100%;
}

.form-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
  font-size: 14px;
}

.form-control {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 15px;
  transition: var(--transition-fast);
  background-color: var(--background-white);
  color: var(--text-primary);
  font-family: inherit;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-control::placeholder {
  color: var(--text-light);
}

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

.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 32px;
  background-color: var(--primary-blue);
  color: var(--background-white);
  border: 2px solid var(--primary-blue);
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-md);
}

.btn-submit:hover {
  background-color: var(--primary-blue-dark);
  border-color: var(--primary-blue-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-submit:active {
  transform: translateY(0);
}

.loading,
.error-message,
.sent-message {
  padding: 14px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 14px;
}

.loading {
  background-color: #dbeafe;
  color: var(--primary-blue);
  border: 1px solid #93c5fd;
}

.error-message {
  background-color: #fee2e2;
  color: #dc2626;
  border: 1px solid #fca5a5;
}

.sent-message {
  background-color: #d1fae5;
  color: #059669;
  border: 1px solid #6ee7b7;
}

/* === FOOTER === */
.footer {
  background-color: var(--text-primary);
  color: rgba(255, 255, 255, 0.8);
  padding: 60px 0 30px;
}

.footer-top {
  margin-bottom: 40px;
}

.footer .logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-bottom: 20px;
}

.footer .logo img {
  height: 40px;
  width: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

.footer .sitename {
  font-size: 18px;
  font-weight: 700;
  color: var(--background-white);
}

.footer-contact p {
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: var(--transition-fast);
}

.footer-contact a:hover {
  color: var(--background-white);
}

.footer .footer-links h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--background-white) !important;
  margin-bottom: 20px;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer .footer-links ul a {
  color: rgba(255, 255, 255, 0.7) !important;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  transition: var(--transition-fast);
}

.footer .footer-links ul a:hover {
  color: var(--background-white) !important;
  padding-left: 5px;
}

.footer-links i {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7) !important;
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.social-links a {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--background-white);
  text-decoration: none;
  transition: var(--transition-fast);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
  background-color: var(--primary-blue);
  border-color: var(--primary-blue);
  transform: translateY(-3px);
}

.copyright {
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright p {
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.credits {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

.credits a {
  color: var(--primary-blue-light);
  text-decoration: none;
  transition: var(--transition-fast);
}

.credits a:hover {
  color: var(--background-white);
}

/* === SCROLL TOP BUTTON === */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background-color: var(--primary-blue);
  color: var(--background-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: var(--shadow-lg);
  transition: var(--transition-normal);
  z-index: 999;
}

.scroll-top:hover {
  background-color: var(--primary-blue-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

.scroll-top i {
  font-size: 24px;
}

/* === RESPONSIVE DESIGN === */

/* Large Desktops (1200px - 1399px) */
@media (max-width: 1399px) {
  .hero-title {
    font-size: 44px;
  }
  
  .section-title h2 {
    font-size: 38px;
  }
}

/* Desktops (992px - 1199px) */
@media (max-width: 1199px) {
  .hero-title {
    font-size: 40px;
  }
  
  .section-title h2 {
    font-size: 36px;
  }
  
  .about-content {
    padding-left: 0;
    margin-top: 40px;
  }
}

/* Tablets (768px - 991px) */
@media (max-width: 991px) {
  .header .logo img {
    height: 40px;
  }
  
  .header .sitename {
    font-size: 18px;
  }
  
  .hero {
    padding: 100px 0 60px;
  }
  
  .hero-title {
    font-size: 36px;
  }
  
  .hero-description {
    font-size: 17px;
  }
  
  .hero-logo {
    max-width: 130px;
  }
  
  .section-title h2 {
    font-size: 32px;
  }
  
  .about,
  .services,
  .contact {
    padding: 80px 0;
  }
  
  .about-content h3 {
    font-size: 24px;
  }
}

/* Mobile Landscape (576px - 767px) */
@media (max-width: 767px) {
  .header .logo img {
    height: 36px;
  }
  
  .header .sitename {
    font-size: 16px;
  }
  
  .hero {
    padding: 80px 0 50px;
  }
  
  .hero-title {
    font-size: 32px;
  }
  
  .hero-description {
    font-size: 16px;
  }
  
  .hero-logo {
    max-width: 110px;
  }
  
  .section-title h2 {
    font-size: 28px;
  }
  
  .section-title p {
    font-size: 16px;
  }
  
  .about,
  .services,
  .contact {
    padding: 60px 0;
  }
  
  .about-content h3 {
    font-size: 22px;
  }
  
  .service-card {
    padding: 32px;
  }
  
  .service-card h3 {
    font-size: 22px;
  }
  
  .contact-info-wrapper,
  .contact-form-wrapper {
    padding: 32px;
  }
  
  .contact-info-title,
  .form-title {
    font-size: 24px;
  }
  
  .map-wrapper {
    height: 220px;
  }
}

/* Mobile Portrait (< 576px) */
@media (max-width: 575px) {
  .header .logo img {
    height: 32px;
  }
  
  .header .sitename {
    font-size: 14px;
  }
  
  .hero {
    padding: 70px 0 40px;
  }
  
  .hero-title {
    font-size: 28px;
  }
  
  .hero-description {
    font-size: 15px;
  }
  
  .hero-logo {
    max-width: 100px;
    margin-bottom: 20px;
  }
  
  .section-title h2 {
    font-size: 24px;
  }
  
  .section-title p {
    font-size: 15px;
  }
  
  .about,
  .services,
  .contact {
    padding: 50px 0;
  }
  
  .about-content h3 {
    font-size: 20px;
  }
  
  .about-content p {
    font-size: 15px;
  }
  
  .vision-mission-item {
    padding: 16px;
  }
  
  .values-list li {
    font-size: 14px;
  }
  
  .service-card {
    padding: 24px;
  }
  
  .service-icon {
    width: 70px;
    height: 70px;
    font-size: 32px;
  }
  
  .service-card h3 {
    font-size: 20px;
  }
  
  .service-card p {
    font-size: 15px;
  }
  
  .contact-info-wrapper,
  .contact-form-wrapper {
    padding: 24px;
  }
  
  .contact-info-title,
  .form-title {
    font-size: 22px;
  }
  
  .contact-info-item {
    padding: 16px;
  }
  
  .map-wrapper {
    height: 200px;
  }
  
  .btn-submit {
    padding: 14px 24px;
    font-size: 15px;
  }
  
  .scroll-top {
    width: 44px;
    height: 44px;
    bottom: 20px;
    right: 20px;
  }
  
  .footer {
    padding: 50px 0 20px;
  }
  
  .footer .logo img {
    height: 36px;
  }
  
  .footer .sitename {
    font-size: 16px;
  }
}

/* === UTILITY CLASSES === */
.text-primary {
  color: var(--text-primary);
}

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

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

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

/* === ACCESSIBILITY === */
a:focus,
button:focus,
input:focus,
textarea:focus {
  outline: 2px solid var(--primary-blue);
  outline-offset: 2px;
}

::selection {
  background-color: var(--primary-blue);
  color: var(--background-white);
}

::-moz-selection {
  background-color: var(--primary-blue);
  color: var(--background-white);
}

/* === ANIMATIONS === */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

/* === PRELOADER === */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  overflow: hidden;
  background: var(--background-white);
  display: flex;
  align-items: center;
  justify-content: center;
}

#preloader::before {
  content: '';
  width: 50px;
  height: 50px;
  border: 4px solid var(--border-color);
  border-top-color: var(--primary-blue);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
