/* Reset & base */
* {
  box-sizing: border-box;
  margin: 0; padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #222;
}
body {
  background: #f9f9fb;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a {
  color: #0077ff;
  text-decoration: none;
  transition: color 0.3s ease;
}
a:hover {
  color: #005bbb;
}

/* Container */
.container {
  width: 90%;
  max-width: 1100px;
  margin: auto;
  padding: 2rem 0;
}

/* Header */
header {
  background: #0077ff;
  color: white;
  padding: 1.5rem 0;
  box-shadow: 0 2px 8px rgb(0 0 0 / 0.1);
}
header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
header h1 {
  font-weight: 700;
  font-size: 1.8rem;
  letter-spacing: 2px;
  cursor: default;
}
nav a {
  margin-left: 1.5rem;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.4rem 0.6rem;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}
nav a:hover {
  background-color: rgba(255 255 255 / 0.2);
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #0077ff 0%, #004ecc 100%);
  color: white;
  padding: 6rem 1rem 4rem;
  text-align: center;
  clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}
.hero h2 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  font-weight: 800;
}
.hero p {
  font-size: 1.25rem;
  max-width: 600px;
  margin: auto;
  font-weight: 400;
  line-height: 1.5;
  opacity: 0.9;
}
.btn-primary {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.75rem 2rem;
  background: white;
  color: #0077ff;
  font-weight: 700;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 5px 15px rgb(0 119 255 / 0.3);
  transition: background-color 0.3s ease, color 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.btn-primary:hover {
  background-color: #005bbb;
  color: white;
  box-shadow: 0 8px 20px rgb(0 91 187 / 0.5);
}

/* Services */
section.services {
  padding: 4rem 0 2rem;
  background: white;
  text-align: center;
}
section.services h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  color: #004ecc;
}
.service-list {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 900px;
  margin: auto;
}
.service-item {
  flex: 1 1 250px;
  background: #f3f7ff;
  padding: 2rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgb(0 0 0 / 0.07);
  transition: transform 0.3s ease;
  cursor: default;
}
.service-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.12);
}
.service-item svg {
  width: 48px;
  height: 48px;
  fill: #0077ff;
  margin-bottom: 1rem;
}
.service-item h4 {
  margin-bottom: 1rem;
  font-size: 1.3rem;
  font-weight: 700;
  color: #004ecc;
}
.service-item p {
  font-size: 1rem;
  color: #333;
  line-height: 1.4;
}

/* Portfolio */
section.portfolio {
  padding: 4rem 0 4rem;
  background: #e8f0ff;
  text-align: center;
}
section.portfolio h3 {
  font-size: 2rem;
  margin-bottom: 2rem;
  font-weight: 700;
  color: #004ecc;
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: auto;
}
.portfolio-item {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgb(0 0 0 / 0.1);
  cursor: pointer;
  transition: transform 0.3s ease;
  text-align: left;
}
.portfolio-item:hover {
  transform: scale(1.04);
}
.portfolio-item a {
  color: inherit;
  text-decoration: none;
  display: block;
  height: 100%;
}
.portfolio-item img {
  width: 100%;
  height: 160px;
  object-fit: contain;
  background: #fff;
  padding: 1rem;
  display: block;
}
.portfolio-item .info {
  padding: 1rem 1.2rem;
}
.portfolio-item .info h4 {
  margin-bottom: 0.5rem;
  font-weight: 700;
  color: #0077ff;
}
.portfolio-item .info p {
  font-size: 0.95rem;
  color: #555;
}

/* Footer */
footer {
  background: #0077ff;
  color: white;
  text-align: center;
  padding: 1.5rem 0;
  font-size: 0.9rem;
  user-select: none;
}
footer a {
  color: #aaddff;
}
footer a:hover {
  color: white;
}

/* Responsive */
@media (max-width: 700px) {
  header .container {
    flex-direction: column;
    gap: 1rem;
  }
  nav a {
    margin-left: 0;
    margin-right: 1rem;
  }
  .service-list {
    flex-direction: column;
  }
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}

.portfolio-text-item .text-logo {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 900;
  font-size: 3.5rem;
  color: #0077ff;
  background: #e8f0ff;
  width: 100%;
  height: 160px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 12px 12px 0 0;
  user-select: none;
  letter-spacing: 0.1em;
}
.portfolio-text-item .text-logo span {
  display: inline-block;
  margin: 0 0.2em;
  transform: scale(1.2);
  font-style: italic;
}
