/* 
 * Heart of Texas Digital - Main Stylesheet
 * 
 * Theme: Modern, Elegant, Tech-focused
 */

:root {
  /* Colors */
  --bg-color: #0f1115;
  --bg-secondary: #161b22;
  --text-primary: #f0f6fc;
  --text-secondary: #8b949e;
  --accent-primary: #58a6ff;
  /* Vibrant Blue */
  --accent-secondary: #ff7b72;
  /* Soft Red/Orange */
  --accent-gradient: linear-gradient(90deg, #58a6ff, #8a63d2);
  /* Blue to Purple */

  /* Typography */
  --font-heading: 'Unbounded', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --container-width: 1200px;
  --header-height: 80px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.4s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* Utilities */
.container {
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 15px;
}

.container-narrow {
  max-width: 800px;
}

.text-gradient {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition-fast);
  font-family: var(--font-body);
}

.btn-primary {
  background: var(--accent-gradient);
  color: #fff;
  border: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(88, 166, 255, 0.4);
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--text-primary);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: var(--text-primary);
  color: var(--bg-color);
}

.btn-outline {
  border: 1px solid var(--text-secondary);
  color: var(--text-secondary);
  padding: 10px 25px;
  font-size: 0.9rem;
}

.btn-outline:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

/* Header */
.header {
  height: var(--header-height);
  display: flex;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(15, 17, 21, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.5px;
}

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

.nav-list {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.nav-link:hover {
  color: var(--text-primary);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.bar {
  width: 25px;
  height: 2px;
  background-color: var(--text-primary);
  transition: var(--transition-fast);
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--header-height);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 50%, rgba(88, 166, 255, 0.15) 0%, transparent 50%);
  z-index: -1;
}

.hero-content {
  z-index: 1;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

/* Scroll Indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0.7;
}

.hero-scroll-indicator span {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.mouse {
  width: 26px;
  height: 40px;
  border: 2px solid var(--text-primary);
  border-radius: 20px;
  position: relative;
}

.mouse::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background-color: var(--text-primary);
  border-radius: 50%;
  animation: scrollMouse 2s infinite;
}

@keyframes scrollMouse {
  0% {
    transform: translate(-50%, 0);
    opacity: 1;
  }

  100% {
    transform: translate(-50%, 15px);
    opacity: 0;
  }
}

/* Sections General */
.section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

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

.service-card {
  background: var(--bg-secondary);
  padding: 40px 30px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition-medium);
}

.service-card:hover {
  transform: translateY(-10px);
  border-color: var(--accent-primary);
}

.service-icon {
  font-size: 2rem;
  color: var(--accent-primary);
  margin-bottom: 20px;
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: 15px;
}

.service-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

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

.portfolio-item {
  /* group: portfolio-card; - Removed invalid property */
  position: relative;
}

.portfolio-image {
  /* Removed fixed height to allow full image visibility or aspect ratio */
  width: 100%;
  aspect-ratio: 16 / 9;
  /* Standard screenshot ratio */
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
  position: relative;
  background: var(--bg-secondary);
  /* Background for any transparent areas */
}

.portfolio-image img,
.placeholder-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Covers the area */
  object-position: top;
  /* Shows the top of the website screenshot */
  transition: transform 0.5s ease;
}

.portfolio-item:hover .portfolio-image img,
.portfolio-item:hover .placeholder-img {
  transform: scale(1.05);
}

.placeholder-img {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.2);
}

.bg-charcoal {
  background: #2d333b;
}

.bg-navy {
  background: #1c2128;
}

.bg-slate {
  background: #22272e;
}

.bg-accent {
  background: linear-gradient(135deg, #1f242c, #161b22);
}


.portfolio-content h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  margin-bottom: 5px;
}

.portfolio-content .category {
  color: var(--accent-primary);
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.center-btn {
  text-align: center;
  margin-top: 30px;
}

/* About / Process */
.about-container {
  display: flex;
  align-items: center;
  gap: 50px;
}

.about-text {
  flex: 1;
}

.about-image {
  flex: 1;
  height: 400px;
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg-secondary);
}

.about-text h2 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 30px;
}

.feature-list li {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.feature-list i {
  color: var(--accent-secondary);
}

/* CTA Section */
.cta-section {
  text-align: center;
  background: linear-gradient(180deg, var(--bg-color) 0%, rgba(88, 166, 255, 0.05) 100%);
}

.cta-section h2 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.cta-section p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

/* Footer */
.footer {
  background: #0d0f12;
  padding-top: 80px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  padding-bottom: 60px;
}

.footer-brand {
  flex: 1;
  min-width: 250px;
}

.footer-logo {
  font-size: 1.5rem;
  margin-bottom: 20px;
  display: inline-block;
}

.footer-brand p {
  color: var(--text-secondary);
  max-width: 300px;
}

.footer-links h4,
.footer-social h4 {
  font-family: var(--font-heading);
  margin-bottom: 20px;
  font-size: 1.1rem;
}

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

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

.footer-links a:hover {
  color: var(--accent-primary);
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.social-icons a:hover {
  background: var(--accent-primary);
  color: #fff;
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 20px 0;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s forwards;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.reveal-on-scroll.active {
  opacity: 1;
  transform: translateY(0);
}

.delay-100 {
  animation-delay: 0.1s;
  transition-delay: 0.1s;
}

.delay-200 {
  animation-delay: 0.2s;
  transition-delay: 0.2s;
}

.delay-300 {
  animation-delay: 0.3s;
  transition-delay: 0.3s;
}

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

/* Responsive */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: var(--bg-color);
    flex-direction: column;
    justify-content: center;
    transition: 0.3s ease;
    padding: 20px;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-list {
    flex-direction: column;
    gap: 30px;
    text-align: center;
  }

  .nav-link {
    font-size: 1.2rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .about-container {
    flex-direction: column;
  }

  .about-image {
    width: 100%;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

  .btn {
    width: 100%;
    text-align: center;
  }
}