/*
  Cloudstax Solutions - Main Stylesheet
  Author: Cloudstax Solutions
  Description: Clean, modern, responsive CSS for Cloudstax Solutions static site
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

:root {
  --primary: #2563eb;
  --primary-dark: #1e40af;
  --accent: #f59e42;
  --bg: #f8fafc;
  --text: #1e293b;
  --gray: #64748b;
  --radius: 8px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(30,41,59,0.04);
  padding: 0.5rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
}

.navbar-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 1px;
  text-decoration: none;
}

.navbar-links {
  display: flex;
  gap: 1.5rem;
}

.navbar-links a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.navbar-links a.active,
.navbar-links a:hover {
  color: var(--primary);
}

.hero {
  background: linear-gradient(90deg, var(--primary) 60%, var(--primary-dark) 100%);
  color: #fff;
  padding: 4rem 1.5rem 3rem 1.5rem;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

.cta-btn {
  background: var(--accent);
  color: #fff;
  padding: 0.75rem 2rem;
  border: none;
  border-radius: var(--radius);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
  display: inline-block;
}

.cta-btn:hover {
  background: #e07c1b;
}

.section {
  max-width: 900px;
  margin: 2.5rem auto;
  padding: 0 1.5rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--primary);
}

.services {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.service-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(30,41,59,0.06);
  flex: 1 1 260px;
  min-width: 260px;
  max-width: 320px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: box-shadow 0.2s;
}

.service-card:hover {
  box-shadow: 0 4px 16px rgba(30,41,59,0.10);
}

.service-card h3 {
  color: var(--primary-dark);
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.service-card p {
  color: var(--gray);
  font-size: 1rem;
}

.founder {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.founder-img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  background: #e5e7eb;
}

.founder-bio {
  flex: 1;
}

.values {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.value {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(30,41,59,0.06);
  padding: 1.25rem 1rem;
  flex: 1 1 200px;
  min-width: 200px;
}

.case-studies {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.case-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(30,41,59,0.06);
  flex: 1 1 300px;
  min-width: 300px;
  max-width: 400px;
  padding: 1.5rem 1.25rem;
  margin-bottom: 1rem;
}

.case-card h4 {
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.case-card .case-meta {
  color: var(--gray);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.contact-form {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(30,41,59,0.06);
  padding: 2rem 1.5rem;
  max-width: 420px;
  margin: 0 auto 2rem auto;
}

.contact-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.6rem;
  margin-bottom: 1rem;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  font-size: 1rem;
}

.contact-form button {
  width: 100%;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 0.75rem;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.contact-form button:hover {
  background: var(--primary-dark);
}

.contact-details {
  text-align: center;
  margin-bottom: 2rem;
}

.contact-details a {
  color: var(--primary);
  text-decoration: none;
  margin: 0 0.5rem;
  font-size: 1.1rem;
}

footer {
  background: #fff;
  color: var(--gray);
  text-align: center;
  padding: 1.5rem 1rem 1rem 1rem;
  border-top: 1px solid #e5e7eb;
  margin-top: 3rem;
}

.footer-social {
  margin: 0.5rem 0 1rem 0;
}

.footer-social a {
  color: var(--gray);
  margin: 0 0.5rem;
  font-size: 1.4rem;
  transition: color 0.2s;
}

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

/* Responsive Navbar Toggle for Mobile */
@media (max-width: 700px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 0 1rem;
  }
  .navbar-logo {
    margin-bottom: 0.5rem;
  }
  .navbar-links {
    flex-direction: column;
    width: 100%;
    gap: 0.5rem;
    background: #fff;
    box-shadow: 0 2px 8px rgba(30,41,59,0.04);
    border-radius: 0 0 8px 8px;
    padding-bottom: 0.5rem;
  }
  .navbar-links a {
    padding: 0.5rem 0;
    width: 100%;
    display: block;
  }
}

/* Optional: Add a hamburger menu for better UX (JS required for toggle) */
@media (max-width: 700px) {
  .navbar-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--primary);
    margin-left: auto;
    margin-bottom: 0.5rem;
    cursor: pointer;
  }
  .navbar-links {
    display: none;
  }
  .navbar-links.active {
    display: flex;
  }
}

@media (min-width: 701px) {
  .navbar-toggle {
    display: none;
  }
}

@media (max-width: 900px) {
  .navbar, .section {
    max-width: 100%;
    padding: 0 1rem;
  }
  .services, .case-studies, .values {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 600px) {
  .hero h1 {
    font-size: 2rem;
  }
  .section-title {
    font-size: 1.3rem;
  }
  .navbar-links {
    gap: 0.7rem;
  }
  .founder {
    flex-direction: column;
    align-items: flex-start;
  }
}