/* Variables and Reset */
:root {
  --primary-color: #0f172a;   /* Dark navy for header/footer */
  --secondary-color: #38bdf8; /* Bright blue accent */
  --text-color: #e2e8f0;      /* Light text */
  --bg-color: #ffffff;        /* Main background */
  --font-family: 'Segoe UI', Tahoma, sans-serif;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Global Styles */
body {
  font-family: var(--font-family);
  background: var(--bg-color);
  color: #334155;  /* dark gray text */
  line-height: 1.6;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
header {
  background: var(--primary-color);
  color: var(--text-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 16px 0;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo h1 {
  font-size: 20px;
  color: #ffffff;
  letter-spacing: 1px;
}
nav {
  /* Desktop nav flex */
}
nav ul {
  list-style: none;
  display: flex;
  gap: 24px;
}
nav ul li a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
}
nav ul li a:hover {
  color: var(--secondary-color);
}
.menu-toggle {
  display: none; /* hidden on desktop */
  font-size: 24px;
  color: var(--text-color);
  background: none;
  border: none;
  cursor: pointer;
}

/* Hero Section */
.hero {
  position: relative;
  background: url('https://images.unsplash.com/photo-1492724441997-5dc865305da7?ixlib=rb-4.0.3&auto=format&fit=crop&w=1200') center/cover no-repeat;
  min-height: 70vh;
  display: flex;
  align-items: center;
  color: #ffffff;
}
.hero-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(15, 23, 42, 0.7);
}
.hero-content {
  position: relative;
  width: 100%;
  padding: 0 24px;
  text-align: center;
}
.hero-content h2 {
  font-size: 3rem;
  margin-bottom: 16px;
  text-transform: uppercase;
}
.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 24px;
}

/* Portfolio Section */
.section-portfolio {
  padding: 80px 0;
  background: #f1f5f9;
}
.section-portfolio .section-title {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2.2rem;
  color: #1e293b;
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  justify-content: center;
}
.portfolio-card {
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}
.portfolio-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.card-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.category-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--secondary-color);
  color: #ffffff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.85rem;
}
.card-content {
  padding: 16px;
}
.card-content h3 {
  margin-bottom: 12px;
  font-size: 1.2rem;
  color: #1e293b;
}
.metric {
  font-size: 0.9rem;
  color: #475569;
  margin-bottom: 16px;
}
.view-btn {
  display: inline-block;
  padding: 8px 16px;
  background: var(--secondary-color);
  color: #ffffff;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.9rem;
}
.view-btn:hover {
  background: #0ea5e9;
}

/* Contact Section */
.section-contact {
  padding: 80px 0;
  background: #ffffff;
}
.section-contact h2 {
  font-size: 2rem;
  margin-bottom: 24px;
  text-align: center;
  color: #1e293b;
}
.contact-wrapper {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  justify-content: space-between;
}
.contact-left, .contact-right {
  flex: 1;
}
.contact-left h3, .contact-right h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: #1e293b;
}
.contact-info-list {
  margin-top: 16px;
}
.info-item {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}
.info-item i {
  font-size: 1.3rem;
  color: var(--secondary-color);
  margin-right: 12px;
}
.info-item span {
  font-weight: bold;
  font-size: 0.9rem;
  color: #475569;
}
.info-item p a {
  color: #1e293b;
  text-decoration: none;
}
.info-item p a:hover {
  text-decoration: underline;
}
.social-grid {
  display: flex;
  gap: 12px;
}
.social-card {
  padding: 8px 12px;
  background: var(--primary-color);
  color: #ffffff;
  border-radius: 4px;
  text-decoration: none;
  transition: transform 0.3s;
}
.social-card:hover {
  transform: translateY(-3px);
}

/* Footer */
footer.main-footer {
  background: var(--primary-color);
  color: var(--text-color);
  padding: 24px 0;
}
.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-left p {
  font-size: 0.9rem;
}
.footer-right a {
  color: var(--text-color);
  text-decoration: none;
  margin-left: 16px;
  font-size: 0.9rem;
}
.footer-right a:hover {
  color: var(--secondary-color);
}

/* Media Queries */
@media (max-width: 992px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-wrapper {
    flex-direction: column;
  }
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
}

@media (max-width: 768px) {
  /* Header nav and mobile menu */
  nav ul {
    display: none;
    flex-direction: column;
    background: var(--primary-color);
    padding: 16px;
    position: absolute;
    top: 100%;
    right: 0;
    width: 80%;
  }
  nav ul.active {
    display: flex;
  }
  .menu-toggle {
    display: block;
  }
  /* Single-column portfolio */
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  /* Footer stacked on mobile */
  .footer-content {
    flex-direction: column;
  }
}
