/* Main Styles for IT HIVE LTD Website */

/* Variables */
:root {
  /* Colors */
  --color-ithive-50: #F0F7FF;
  --color-ithive-100: #E0EFFF;
  --color-ithive-200: #B8DBFF;
  --color-ithive-300: #8AC2FF;
  --color-ithive-400: #5BA4FF;
  --color-ithive-500: #3A86FF;
  --color-ithive-600: #0A63FF;
  --color-ithive-700: #004CD6;
  --color-ithive-800: #0A2540;
  --color-ithive-900: #051220;
  
  --color-accent-purple: #8338EC;
  --color-accent-pink: #FF006E;
  --color-accent-yellow: #FFBE0B;
  
  --color-gray-50: #F9FAFB;
  --color-gray-100: #F3F4F6;
  --color-gray-200: #E5E7EB;
  --color-gray-300: #D1D5DB;
  --color-gray-400: #9CA3AF;
  --color-gray-500: #6B7280;
  --color-gray-600: #4B5563;
  --color-gray-700: #374151;
  --color-gray-800: #1F2937;
  --color-gray-900: #111827;
  
  --color-success: #10B981;
  --color-warning: #F59E0B;
  --color-error: #EF4444;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* Border Radius */
  --radius-sm: 0.125rem;
  --radius: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-2xl: 1rem;
  --radius-3xl: 1.5rem;
  --radius-full: 9999px;
}

/* Base styles */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--color-gray-800);
  line-height: 1.5;
  background-color: white;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

a {
  color: var(--color-ithive-600);
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}

a:hover {
  color: var(--color-ithive-700);
}

img {
  max-width: 100%;
  height: auto;
}

/* Utilities */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.max-w-3xl {
  max-width: 48rem;
}

/* Header and Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: white;
  box-shadow: var(--shadow-md);
  z-index: 100;
  transition: all 0.3s ease-in-out;
}

.header.scrolled {
  padding: 0.75rem 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
}

.logo {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.75rem;
  color: var(--color-gray-900);
  letter-spacing: -0.025em;
}

.logo-accent {
  color: var(--color-ithive-600);
}

.main-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  margin-right: 1.5rem;
}

.nav-link {
  display: inline-block;
  padding: 0.5rem 1rem;
  color: var(--color-gray-700);
  font-weight: 500;
  transition: all 0.2s ease-in-out;
}

.nav-link:hover, .nav-link.active {
  color: var(--color-ithive-600);
}

.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  position: relative;
  width: 2rem;
  height: 2rem;
}

.mobile-menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-gray-800);
  position: absolute;
  left: 0;
  transition: all 0.3s ease-in-out;
}

.mobile-menu-toggle span:nth-child(1) {
  top: 0.5rem;
}

.mobile-menu-toggle span:nth-child(2) {
  top: 1rem;
}

.mobile-menu-toggle span:nth-child(3) {
  top: 1.5rem;
}

/* Mobile Menu Open State */
.mobile-menu-toggle.open span:nth-child(1) {
  transform: rotate(45deg);
  top: 1rem;
}

.mobile-menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.open span:nth-child(3) {
  transform: rotate(-45deg);
  top: 1rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all 0.3s ease-in-out;
  cursor: pointer;
  text-align: center;
  border: none;
}

.btn-primary {
  background-color: var(--color-ithive-600);
  color: white;
  box-shadow: 0 4px 6px -1px rgba(10, 99, 255, 0.2);
}

.btn-primary:hover {
  background-color: var(--color-ithive-700);
  color: white;
}

.btn-secondary {
  background-color: var(--color-gray-200);
  color: var(--color-gray-800);
}

.btn-secondary:hover {
  background-color: var(--color-gray-300);
}

.btn-white {
  background-color: white;
  color: var(--color-ithive-600);
}

.btn-white:hover {
  background-color: var(--color-gray-50);
}

.btn-outline-white {
  background-color: transparent;
  border: 1px solid white;
  color: white;
}

.btn-outline-white:hover {
  background-color: white;
  color: var(--color-ithive-600);
}

/* Hero Section */
.hero {
  background-color: var(--color-gray-50);
  padding-top: 8rem;
  padding-bottom: 5rem;
  position: relative;
  overflow: hidden;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  color: var(--color-ithive-800);
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--color-gray-600);
  margin-bottom: 2.5rem;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

.about-hero {
  background-color: var(--color-gray-50);
  padding-top: 8rem;
  padding-bottom: 3rem;
  position: relative;
  overflow: hidden;
}

/* CTA Section */
.cta {
  background-color: var(--color-ithive-800);
  color: white;
  padding: 4rem 0;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.cta-content h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.cta-content p {
  color: var(--color-gray-300);
  font-size: 1.125rem;
  max-width: 36rem;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
}

/* Footer */
.footer {
  background-color: var(--color-gray-900);
  color: var(--color-gray-400);
  padding-top: 4rem;
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--color-gray-800);
}

.footer-column {
  display: flex;
  flex-direction: column;
}

.footer-logo {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: white;
  margin-bottom: 1.5rem;
  display: inline-block;
}

.footer-description {
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background-color: var(--color-gray-800);
  border-radius: var(--radius-full);
  color: var(--color-gray-200);
  transition: all 0.2s ease-in-out;
}

.social-link:hover {
  background-color: var(--color-ithive-600);
  color: white;
}

.footer-title {
  color: white;
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: var(--color-gray-400);
  transition: color 0.2s ease-in-out;
}

.footer-links a:hover {
  color: white;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-contact a {
  color: var(--color-gray-400);
  transition: color 0.2s ease-in-out;
}

.footer-contact a:hover {
  color: white;
}

.newsletter-text {
  margin-bottom: 1rem;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.newsletter-input {
  padding: 0.75rem;
  background-color: var(--color-gray-800);
  border: 1px solid var(--color-gray-700);
  border-radius: var(--radius-md);
  color: white;
  width: 100%;
}

.newsletter-input:focus {
  outline: none;
  border-color: var(--color-ithive-500);
}

.footer-bottom {
  padding: 1.5rem 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.copyright {
  font-size: 0.875rem;
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal a {
  font-size: 0.875rem;
  color: var(--color-gray-400);
  transition: color 0.2s ease-in-out;
}

.footer-legal a:hover {
  color: white;
}

/* Blog Cards */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
}

.blog-card {
  background-color: white;
  border-radius: 1rem;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: transform 0.2s ease-in-out;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-0.5rem);
  box-shadow: var(--shadow-lg);
}

.blog-image {
  height: 200px;
  overflow: hidden;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease-in-out;
}

.blog-card:hover .blog-image img {
  transform: scale(1.1);
}

.blog-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.blog-category {
  background-color: var(--color-ithive-100);
  color: var(--color-ithive-700);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

.blog-reading-time {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--color-gray-500);
  font-size: 0.75rem;
}

.blog-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--color-ithive-800);
}

.blog-excerpt {
  color: var(--color-gray-600);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.blog-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--color-gray-200);
  padding-top: 1.25rem;
}

.blog-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.author-image {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-full);
  object-fit: cover;
}

.author-info {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-weight: 600;
  color: var(--color-gray-800);
  font-size: 0.875rem;
}

.post-date {
  color: var(--color-gray-500);
  font-size: 0.75rem;
}

.blog-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-ithive-600);
  font-weight: 500;
  font-size: 0.875rem;
  transition: color 0.2s ease-in-out;
}

.blog-link:hover {
  color: var(--color-ithive-800);
}

/* Media Queries */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
}

@media (max-width: 768px) {
  .header-inner {
    padding: 1rem 0;
  }
  
  .logo {
    font-size: 1.5rem;
  }
  
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: var(--shadow-md);
    padding: 1rem 0;
  }
  
  .main-nav.open {
    display: flex;
    flex-direction: column;
  }
  
  .nav-list {
    flex-direction: column;
    margin-right: 0;
    width: 100%;
  }
  
  .nav-link {
    display: block;
    padding: 0.75rem 1.5rem;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.125rem;
  }
  
  .cta-content h2 {
    font-size: 1.75rem;
  }
  
  .blog-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-top {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-legal {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .btn {
    display: block;
    width: 100%;
    margin-top: 0.5rem;
  }
  
  .hero {
    padding-top: 6rem;
    padding-bottom: 3rem;
  }
  
  .hero-title {
    font-size: 1.75rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    width: 100%;
  }
}