/* =====================================================
   Aspiroz Portfolio — Clean Professional Theme
   ===================================================== */

/* ----- CSS Variables & Reset ----- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Colors - Matched to standard corporate IT theme */
  --clr-primary: #2575fc; /* Professional Blue */
  --clr-primary-dk: #1a5bbf;
  --clr-dark: #121212;
  --clr-nav-bg: #000000; /* Dark background for white stroke logo */
  --clr-bg: #f5f7fa;
  --clr-surface: #FFFFFF;
  --clr-border: #e0e6ed;
  --clr-text: #2c3e50;
  --clr-text-muted: #5c6b7a;
  
  /* Typography */
  --font-head: 'Outfit', sans-serif;
  --font-body: 'Roboto', sans-serif;

  /* Spacing */
  --container: 1280px;
  --transition: 0.3s ease;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--clr-bg);
  color: var(--clr-text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }

/* ----- Utility ----- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.text-center { text-align: center; }
.text-primary { color: var(--clr-primary); }

/* ----- Navbar ----- */
.navbar {
  background: var(--clr-nav-bg); 
  border-bottom: 1px solid rgba(255,255,255,0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100px; /* Increased height for larger logo */
}
.logo-img {
  max-height: 70px; /* Much larger logo */
  width: auto;
}
.nav-cta {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 6px;
  background: var(--clr-primary);
  color: #FFF;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 16px;
  transition: var(--transition);
}
.nav-cta:hover {
  background: var(--clr-primary-dk);
  transform: translateY(-2px);
}

/* ----- Page Header ----- */
.page-header {
  padding: 80px 0 60px;
  background: var(--clr-surface);
  border-bottom: 1px solid var(--clr-border);
}
.page-title {
  font-family: var(--font-head);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  color: var(--clr-dark);
  margin-bottom: 16px;
}
.page-subtitle {
  font-size: 18px;
  color: var(--clr-text-muted);
  max-width: 700px;
  margin: 0 auto;
}

/* ----- Portfolio Grid ----- */
.portfolio-section {
  padding: 80px 0;
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 32px;
}
.portfolio-card {
  background: var(--clr-surface);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid var(--clr-border);
}
.portfolio-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}
.card-link {
  display: block;
}
.card-image-wrap {
  position: relative;
  overflow: hidden;
  background: #EEE;
  aspect-ratio: 16/10;
}
.split-image-wrap {
  display: flex;
  position: relative;
  overflow: hidden;
  background: #EEE;
  aspect-ratio: 16/10;
}
.split-half {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: block;
}
.split-half + .split-half {
  border-left: 2px solid var(--clr-surface);
}
.split-half:hover .card-img {
  transform: scale(1.05);
}
.split-half .card-overlay {
  opacity: 0;
  transition: opacity 0.3s ease;
}
.split-half:hover .card-overlay {
  opacity: 1;
}
.split-half:hover .view-btn {
  transform: translateY(0);
}
.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.6s ease;
}
.portfolio-card:hover .card-img {
  transform: scale(1.05);
}
.card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(18, 18, 18, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.portfolio-card:hover .card-overlay {
  opacity: 1;
}
.view-btn {
  background: var(--clr-primary);
  color: #FFF;
  padding: 10px 24px;
  border-radius: 50px;
  font-family: var(--font-head);
  font-weight: 600;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}
.portfolio-card:hover .view-btn {
  transform: translateY(0);
}

.card-body {
  padding: 24px;
}
.card-title {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  color: var(--clr-dark);
  margin-bottom: 6px;
}
.card-url {
  font-size: 14px;
  color: var(--clr-primary);
  font-weight: 500;
}

/* ----- CTA Section ----- */
.cta-section {
  padding: 80px 0;
  background: var(--clr-dark);
  color: #FFF;
  text-align: center;
}
.cta-title {
  font-family: var(--font-head);
  font-size: 36px;
  margin-bottom: 16px;
}
.cta-subtitle {
  font-size: 18px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 32px;
}
.btn-primary {
  display: inline-block;
  padding: 14px 32px;
  background: var(--clr-primary);
  color: #FFF;
  border-radius: 6px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 16px;
  transition: var(--transition);
}
.btn-primary:hover {
  background: #FFF;
  color: var(--clr-dark);
}

/* ----- Footer ----- */
.footer {
  padding: 32px 0;
  background: var(--clr-surface);
  border-top: 1px solid var(--clr-border);
}
.footer p {
  color: var(--clr-text-muted);
  font-size: 14px;
}

/* ----- Responsive ----- */
@media (max-width: 768px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}
