/* Blog Styles - Software IT Services */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --ocean-blue: #4A90A4;
  --ocean-bright: #5BA3B8;
  --turquoise: #6DD5D5;
  --turquoise-dark: #4FC3C3;
  --sand: #E8D4B8;
  --sand-dark: #D4B896;
  --navy: #2C4251;
  --navy-deep: #1A3342;
  --coral: #E89B7E;
  --green: #7FA885;
  --white: #FFFFFF;
  --light: #F8FAFB;
  --font-primary: 'Inter', sans-serif;
  --font-display: 'Poppins', sans-serif;
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 32px;
  --spacing-xl: 48px;
  --spacing-2xl: 64px;
  --spacing-3xl: 96px;
  --spacing-4xl: 128px;
}

/* Page Loader */
.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--ocean-blue) 0%, var(--navy) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.page-loader.loaded {
  opacity: 0;
  visibility: hidden;
}

.loader-content {
  text-align: center;
  color: white;
}

.loader-logo {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
}

.loader-subtitle {
  font-size: 0.875rem;
  opacity: 0.8;
  margin-top: 0.5rem;
}

.spinner {
  width: 60px;
  height: 60px;
  margin: 0 auto;
  position: relative;
  animation: rotate 2s linear infinite;
}

.spinner-circle {
  width: 100%;
  height: 100%;
  border: 4px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--turquoise);
  border-radius: 50%;
  animation: spin 1s ease-in-out infinite;
}

@keyframes rotate {
  100% { transform: rotate(360deg); }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-primary);
  font-size: 18px;
  line-height: 1.7;
  color: var(--navy);
  background: var(--white);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}

h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-top: var(--spacing-2xl); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.4rem); margin-top: var(--spacing-lg); }
p { margin: 10px 0 0 0; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.section { padding: var(--spacing-3xl) 0; }

/* Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--turquoise), var(--ocean-bright));
  transform-origin: left;
  transform: scaleX(0);
  z-index: 9998;
}

/* Header Styles */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #fff;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(74, 144, 164, 0.1);
  transition: transform 0.3s cubic-bezier(0.19, 1, 0.22, 1), box-shadow 0.3s ease;
}

.header.scrolled {
  box-shadow: 0 4px 20px rgba(74, 144, 164, 0.15);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-md) 0;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: #4A90A4;
  letter-spacing: -0.02em;
  display: flex;
  flex-direction: column;
  line-height: 1;
  text-decoration: none;
  max-width: 250px;
  max-height: auto;
}

.logo span {
  display: flex;
  flex-direction: column;
}

.logo-sub {
  font-size: 0.65rem;
  font-weight: 600;
  opacity: 0.7;
  margin-top: 2px;
}

.logo-image { height: 80px; width: auto; }

.nav-links {
  display: flex;
  gap: var(--spacing-lg);
  list-style: none;
}

.nav-links a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
  transition: color 0.3s ease;
  position: relative;
  text-decoration: none;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--turquoise);
  transition: width 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}

.nav-links a:hover::after {
  width: 100%;
}

.cta-button {
  background: var(--ocean-blue);
  color: var(--white);
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  border: none;
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(74, 144, 164, 0.4);
}

.cta-button-large {
  background: var(--turquoise);
  color: var(--navy);
  padding: 18px 40px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.125rem;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(109, 213, 213, 0.4);
  text-decoration: none;
  display: inline-block;
}

.cta-button-large:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(109, 213, 213, 0.5);
}

.cta-button-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  padding: 18px 40px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.125rem;
  border: 2px solid rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
  cursor: pointer;
  backdrop-filter: blur(10px);
  text-decoration: none;
  display: inline-block;
}

.cta-button-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: var(--white);
}

.cta-button-outline {
  background: transparent;
  color: var(--ocean-blue);
  border: 2px solid var(--ocean-blue);
  padding: 12px 18px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  display: inline-block;
  margin-left: 10px;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.hamburger,
.hamburger::before,
.hamburger::after {
  width: 28px;
  height: 2px;
  background: var(--navy);
  display: block;
  transition: all 0.3s ease;
}

.hamburger::before,
.hamburger::after {
  content: '';
}

.hamburger::before {
  transform: translateY(-8px);
}

.hamburger::after {
  transform: translateY(6px);
}

/* Blog Hero Styles */
.blog-hero {
  padding: var(--spacing-3xl) 0 var(--spacing-xl);
  background: linear-gradient(180deg, #f9fbfc, #ffffff);
  border-bottom: 1px solid rgba(74,144,164,0.1);
}

.blog-hero-modern {
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 152px;
  overflow: hidden;
}

.blog-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.blog-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4);
}

.blog-hero-text {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--white);
  padding: var(--spacing-xl);
}

.blog-hero-title {
  color: var(--white);
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: var(--spacing-md);
}

.blog-hero-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 400;
}

.blog-meta {
  color: #5B6B75;
  font-size: 14px;
  margin-top: 8px;
}

/* Blog Content Styles */
.content {
  padding-top: var(--spacing-xl);
}

.content h2 + p {
  margin-top: 8px;
}

.content ul, .content ol {
  padding-left: 20px;
  margin-top: 8px;
}

.content li {
  margin: 6px 0;
}

.highlight {
  background: #f1f8fa;
  border-left: 4px solid var(--ocean-blue);
  padding: 12px 16px;
  border-radius: 6px;
}

/* Footer Styles */
.footer {
  background: var(--navy-deep);
  color: var(--white);
  padding: var(--spacing-3xl) 0 var(--spacing-lg);
  margin-top: var(--spacing-3xl);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

.footer-section h3 {
  color: var(--turquoise);
  margin-bottom: var(--spacing-md);
  font-size: 1.25rem;
}

.footer-section p,
.footer-section a {
  color: rgba(255, 255, 255, 0.7);
  line-height: 2;
  transition: color 0.3s ease;
  text-decoration: none;
}

.footer-section a:hover {
  color: var(--turquoise);
}

.footer-links {
  list-style: none;
  padding-left: 0;
}

.footer-links li {
  margin-bottom: var(--spacing-xs);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
}

/* Mobile Responsive Styles */
@media (max-width: 900px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    right: 24px;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 8px;
    padding: 12px;
    flex-direction: column;
    gap: 10px;
  }

  .nav-links.active {
    display: flex;
  }

  .menu-toggle {
    display: inline-block;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 135px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: var(--spacing-lg);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    box-shadow: 0 4px 20px rgba(74, 144, 164, 0.2);
  }

  .nav-links.active {
    transform: translateX(0);
  }

  .menu-toggle {
    display: block;
  }

  .nav .cta-button {
    display: none;
  }

  .section {
    padding: var(--spacing-2xl) 0;
  }

  .cta-button-large,
  .cta-button-secondary {
    width: 100%;
    text-align: center;
  }

  .services-list {
    grid-template-columns: 1fr;
  }
}