@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
  background-color: #ffffff;
  color: #111111;
  padding: 0 80px;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 40px 0;
}

.logo {
  font-weight: 600;
  font-size: 18px;
}

.navbar nav a {
  margin-left: 30px;
  text-decoration: none;
  color: #111;
  font-size: 14px;
  font-weight: 500;
  transition: opacity 0.3s ease;
}

.navbar nav a:hover {
  opacity: 0.6;
}

/* Hero Section */
.hero {
  text-align: center;
  margin: 90px 0 110px 0;
}

.hero .greeting {
  font-size: 20px;
  margin-bottom: 15px;
  color: #333;
}

.hero h1 {
  font-size: 48px;
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.5px;
}

.hero .location {
  font-size: 14px;
  color: #666;
  margin-top: 25px;
}

/* Projects Section - Zig Zag */
.projects {
  display: flex;
  flex-direction: column;
  gap: 120px;
  max-width: 1100px;
  margin: 0 auto 120px auto;
}

.project-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 80px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

/* Hover Effect for Project Cards */
.project-card:hover {
  transform: translateY(-6px);
}

.project-card:hover .project-img img {
  transform: scale(1.02);
}

.project-img {
  flex: 1;
  overflow: hidden;
  border-radius: 12px;
}

.project-img img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.project-info {
  flex: 1;
}

.project-info .category {
  font-size: 14px;
  color: #777;
  margin-bottom: 16px;
  display: block;
}

.project-info h2 {
  font-size: 32px;
  font-weight: 500;
  line-height: 1.35;
  color: #111;
}

/* About Page Styling */
.about-container {
  max-width: 900px;
  margin: 60px auto 120px auto;
  display: flex;
  gap: 60px;
  align-items: flex-start;
}

.about-image {
  flex: 1;
}

.about-image img {
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
}

.about-content {
  flex: 1.5;
}

.about-content h1 {
  font-size: 36px;
  margin-bottom: 24px;
  font-weight: 600;
}

.about-content p {
  font-size: 18px;
  line-height: 1.7;
  color: #444;
  margin-bottom: 20px;
}

/* Footer & Social Icons */
footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 50px 0;
  border-top: 1px solid #eaeaea;
  font-size: 14px;
}

footer .footer-links a {
  text-decoration: none;
  color: #111;
  margin-right: 25px;
  font-weight: 500;
  transition: opacity 0.3s ease;
}

footer .social-links {
  display: flex;
  gap: 20px;
}

footer .social-links a {
  text-decoration: none;
  color: #111;
  font-size: 18px;
  transition: transform 0.3s ease, color 0.3s ease;
}

footer .social-links a:hover {
  transform: translateY(-3px);
  color: #555;
}

/* Responsive Design */
@media (max-width: 768px) {
  body { padding: 0 20px; }
  .project-card, .project-card.reverse, .about-container {
    flex-direction: column !important;
    gap: 30px;
  }
  .hero h1 { font-size: 32px; }
}

footer .social-links a {
  color: #555;
  font-size: 20px;
  margin-left: 20px;
  text-decoration: none;
  transition: color 0.3s ease, transform 0.2s ease;
  display: inline-block;
}

footer .social-links a:hover {
  transform: translateY(-3px);
}

footer .social-links a[href*="wa.me"]:hover,
footer .social-links a[href*="whatsapp"]:hover {
  color: #25D366;
}

footer .social-links a[href^="mailto:"]:hover {
  color: #EA4335;
}

footer .social-links a[href*="behance"]:hover {
  color: #1769FF;
}

footer .social-links a[href*="linkedin"]:hover {
  color: #0A66C2;
}

/* Dental Case Study */
.dental-case-study {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
}

.dental-case-study .project-hero,
.dental-case-study .project-section,
.dental-case-study .read-more-section {
  margin-bottom: 160px;
}

.dental-case-study .project-image-full {
  max-width: 800px;
  margin: 40px auto 0 auto;
  text-align: center;
}

.dental-case-study .project-image-full img {
  width: 100%;
  max-height: 700px;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.dental-case-study .text-center {
  text-align: center;
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
}

.dental-case-study .text-center h2 {
  font-size: 32px;
  margin-bottom: 20px;
}

.dental-case-study .text-center p {
  font-size: 18px;
  line-height: 1.7;
  color: #444;
}

.project-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
}

.project-hero.reverse {
  flex-direction: row-reverse;
}

.project-hero .hero-text {
  flex: 1;
}

.project-hero .hero-text h1 {
  font-size: 36px;
  line-height: 1.2;
  margin-bottom: 15px;
}

.project-hero .hero-text h2 {
  font-size: 28px;
  line-height: 1.3;
  margin-bottom: 15px;
}

.project-hero .hero-text p {
  font-size: 16px;
  line-height: 1.6;
  color: #555;
}

.project-hero .hero-image {
  flex: 1;
  text-align: center;
}

.project-hero .hero-image img {
  width: 100%;
  max-width: 440px;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

.project-hero .hero-title-secondary {
  font-size: 18px;
  font-weight: 500;
  color: #666;
  margin-bottom: 10px;
}

.project-hero .hero-title-main {
  font-size: 32px;
  font-weight: 700;
  color: #111;
  line-height: 1.3;
}

.lessons-learned-centered {
  text-align: center;
  max-width: 750px;
  margin: 0 auto;
}

.lessons-learned-centered h2 {
  font-size: 32px;
  margin-bottom: 40px;
}

.lessons-learned-centered .lesson-card {
  margin-bottom: 35px;
}

.lessons-learned-centered .lesson-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.lessons-learned-centered .lesson-card p {
  font-size: 16px;
  line-height: 1.7;
  color: #555;
}

.read-more-section {
  text-align: center;
}

.read-more-section h2 {
  font-size: 28px;
  margin-bottom: 40px;
}

.other-projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.other-project-card {
  text-decoration: none;
  color: inherit;
  display: block;
}

.other-project-card img {
  width: 100%;
  border-radius: 12px;
  transition: transform 0.3s ease;
  margin-bottom: 12px;
}

.other-project-card:hover img {
  transform: translateY(-5px);
}

.other-project-card h4 {
  font-size: 18px;
  font-weight: 600;
  color: #111;
}

/* Read More Grid - Fixed Aspect Ratio */
.read-more-section {
  text-align: center;
  margin-bottom: 160px;
}

.read-more-section h2 {
  font-family: 'Inter', sans-serif;
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 40px;
}

.other-projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  align-items: start;
}

.other-project-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.other-project-card img {
  width: 100%;
  height: auto;
  max-height: 240px;
  object-fit: contain;
  border-radius: 12px;
  margin-bottom: 16px;
  transition: transform 0.3s ease;
}

.other-project-card:hover img {
  transform: translateY(-5px);
}

.other-project-card h4 {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #111;
  line-height: 1.4;
  margin: 0;
  text-align: center;
}

/* Footer border */
footer {
  border-top: 1px solid #E5E5E5;
  padding-top: 40px;
  margin-top: 160px;
}

footer, .footer {
  width: 100%;
  border-top: 1px solid #E0E0E0 !important;
  padding-top: 40px !important;
  margin-top: 100px !important;
  box-sizing: border-box;
}

/* Global Styles & Variables */
:root {
  --primary-color: #1a4d3e;
  --text-dark: #1f2937;
  --text-muted: #6b7280;
  --bg-light: #f9fafb;
  --bg-card: #ffffff;
  --border-color: #e5e7eb;
  --radius-lg: 16px;
  --radius-md: 12px;
  --section-spacing: 160px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  margin-bottom: var(--section-spacing);
}

.text-center {
  text-align: center;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.hero {
  padding-top: 80px;
  text-align: center;
}

.hero h1 {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 12px;
}

.hero p.subtitle {
  font-size: 20px;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto 40px;
}

.hero-image-container img {
  width: 100%;
  max-width: 850px;
  height: auto;
  border-radius: var(--radius-lg);
}

h2.section-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 24px;
}

p.description {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
}

.card h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--primary-color);
}

.card ul {
  list-style-type: none;
}

.card ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  font-size: 15px;
  color: var(--text-dark);
}

.card ul li::before {
  content: "•";
  color: var(--primary-color);
  font-weight: bold;
  position: absolute;
  left: 0;
}

.diagram-img, .persona-img, .sketch-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.case-block {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 40px;
  margin-bottom: 40px;
}

.case-block .meta-label {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary-color);
  margin-bottom: 8px;
}

.more-projects {
  border-top: 1px solid var(--border-color);
  padding-top: 80px;
}

.project-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.project-chip {
  padding: 12px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 30px;
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 600;
  transition: all 0.2s ease;
}

.project-chip:hover {
  background: var(--primary-color);
  color: #ffffff;
}

/* Maktaba specific styles */
.section-block {
  margin-bottom: var(--section-spacing);
}

h1.main-title {
  font-size: 52px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text-main);
  margin-bottom: 16px;
}

.sub-title {
  font-size: 24px;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 40px;
}

h2.section-heading {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-main);
  margin-bottom: 24px;
}

h3.card-heading {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 12px;
}

p.body-text {
  font-size: 18px;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.7;
}

.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 32px;
}

.info-card ul {
  list-style: none;
  margin-top: 12px;
}

.info-card ul li {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  position: relative;
  padding-left: 20px;
}

.info-card ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--text-main);
  font-weight: bold;
}

.case-study-feature {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 40px;
}

.label-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-dark);
  margin-bottom: 12px;
  line-height: 1.2;
  text-transform: none;
}

.feature-block {
  margin-bottom: 32px;
}

.feature-block:last-child {
  margin-bottom: 0;
}

.responsive-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  object-fit: cover;
}

.screen-showcase {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  margin-top: 32px;
}

.more-studies {
  border-top: 1px solid var(--border-color);
  padding-top: 80px;
}

.studies-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.study-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  text-decoration: none;
  color: var(--text-main);
  font-size: 20px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.study-link:hover {
  background: #F3F4F6;
  border-color: #D1D5DB;
}

/* Maktaba header/footer */
header.site-header {
  width: 100%;
  background: transparent;
  padding: 40px 0 20px 0;
}

.nav-container {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-size: 20px;
  font-weight: 700;
  color: #111111;
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: opacity 0.3s ease;
}

.nav-logo:hover {
  opacity: 0.6;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: #111111;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: opacity 0.3s ease, color 0.3s ease;
}

.nav-links a:hover {
  opacity: 0.5;
}

footer.site-footer {
  max-width: 960px;
  margin: var(--section-spacing) auto 60px auto;
  padding-top: 32px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 28px;
}

.footer-links a {
  text-decoration: none;
  color: #111111;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: opacity 0.3s ease;
}

.footer-links a:hover {
  opacity: 0.5;
}

.social-links {
  display: flex;
  gap: 24px;
  align-items: center;
}

.social-links a {
  color: #111111;
  font-size: 18px;
  text-decoration: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  display: inline-block;
}

.social-links a:hover {
  opacity: 0.5;
  transform: translateY(-2px);
}

.hero-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.hero-text {
  flex: 1;
}

.hero-img-wrapper {
  flex: 1;
}

.about-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.about-text {
  flex: 1.2;
}

.about-img-wrapper {
  flex: 0.8;
  display: flex;
  justify-content: center;
}

.about-img-wrapper img {
  max-width: 280px;
  height: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.responsive-img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  align-items: start;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: start;
}

.carousel-container {
  position: relative;
  max-width: 650px;
  margin: 20px auto 0 auto;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.carousel-slide {
  display: none;
  width: 100%;
}

.carousel-slide.active {
  display: block;
}

.carousel-slide img {
  width: 100%;
  height: auto;
  display: block;
  border: none;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(17, 17, 17, 0.7);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 10;
}

.carousel-btn:hover {
  background: rgba(17, 17, 17, 0.9);
  transform: translateY(-50%) scale(1.05);
}

.carousel-btn.prev {
  left: 12px;
}

.carousel-btn.next {
  right: 12px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 40px;
  text-align: left;
}

.feature-block {
  margin-bottom: 24px;
}

.feature-block:last-child {
  margin-bottom: 0;
}

.label-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b7280;
  margin-bottom: 6px;
}

.comparison-box {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.label-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 6px;
  margin-bottom: 12px;
}

.label-old {
  background: #FEE2E2;
  color: #991B1B;
}

.label-new {
  background: #D1FAE5;
  color: #065F46;
}

.app-screen-img {
  max-width: 250px;
  max-height: 480px;
  margin: 0 auto;
  object-fit: contain;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease;
}

.project-card:hover {
  transform: translateY(-4px);
}

@media (max-width: 768px) {
  body {
    padding: 0 24px;
  }
  .hero-flex, .about-flex {
    flex-direction: column;
  }
  .about-flex {
    flex-direction: column-reverse;
  }
  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
  }
  footer.site-footer {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }
}

/* Portfolio case study styles */
.hero-1 {
  display: flex;
  align-items: center;
  gap: 4rem;
  padding: 4rem 0 160px 0;
}

.hero-2 {
  display: flex;
  align-items: center;
  gap: 4rem;
  padding: 0 0 160px 0;
}

.center-section {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 160px auto;
}

.center-section p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.carousel-container {
  position: relative;
  max-width: 380px;
  margin: 2rem auto 0 auto;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
  background-color: #fcfcfc;
}

.carousel-slides {
  display: flex;
  transition: transform 0.4s ease-in-out;
}

.slide {
  min-width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.slide img {
  max-height: 380px;
  width: auto;
  object-fit: contain;
  margin: 0 auto;
}

.read-more-section {
  padding: 160px 0;
  background-color: var(--bg-secondary);
}