/* CSS Variables for Themes */
:root {
  --primary-color: #2563eb; /* Blue */
  --secondary-color: #f1f5f9;
  --accent-color: #1e293b;
  --button-color: #2563eb;
  --button-text: #fff;
  --nav-bg: #fff;
  --nav-text: #1e293b;
  --footer-bg: #1e293b;
  --footer-text: #fff;
  --surface-color: #fff;
  --text-color: #0f172a;
  --primary-gradient: linear-gradient(135deg, #2563eb 0%, #60a5fa 100%);
}

body.theme-blue {
  --primary-color: #2563eb;
  --button-color: #2563eb;
  --primary-gradient: linear-gradient(135deg, #2563eb 0%, #60a5fa 100%);
}
body.theme-green {
  --primary-color: #22c55e;
  --button-color: #22c55e;
}
body.theme-orange {
  --primary-color: #f97316;
  --button-color: #f97316;
}

/* --- DARK THEME --- */
body.theme-dark {
  --primary-color: #1e293b;
  --primary-gradient: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  --secondary-color: #232e41;
  --surface-color: #111827;
  --accent-color: #60a5fa;
  --button-color: #334155;
  --button-gradient: linear-gradient(90deg, #334155 0%, #2563eb 100%);
  --button-text: #fff;
  --nav-bg: #232e41;
  --nav-text: #e0e7ff;
  --footer-bg: #232e41;
  --footer-text: #e0e7ff;
  --text-color: #e0e7ff;
}

/* Reset and base styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: var(--secondary-color);
  color: var(--accent-color);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.container {
  width: 90%;
  max-width: 1000px;
  margin: 2.5rem auto 0 auto;
}
@media (max-width: 700px) {
  .container {
    margin-top: 1.5rem;
  }
}

/* Navigation Bar */
.navbar {
  background: var(--nav-bg);
  color: var(--nav-text);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  position: sticky;
  top: 0;
  z-index: 10;
  height: 72px;
  display: flex;
  align-items: center;
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  width: 100%;
  margin-top: -4px;
}
.logo {
  font-weight: bold;
  font-size: 1.3rem;
  line-height: 1;
  display: flex;
  align-items: center;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}
.nav-links a {
  text-decoration: none;
  color: var(--nav-text);
  padding: 0.5rem 0.8rem;
  border-radius: 4px;
  transition: background 0.2s;
  font-size: 1rem;
}
.nav-links a.active, .nav-links a:hover {
  background: var(--primary-color);
  color: #fff;
}
.hamburger {
  display: none;
  font-size: 2rem;
  cursor: pointer;
}
.menu-toggle {
  display: none;
}

/* Responsive Navigation */
@media (max-width: 700px) {
  .navbar, .nav-container {
    height: 48px;
  }
  .logo {
    font-size: 1rem;
  }
  .nav-links {
    gap: 0.7rem;
  }
  .nav-links a {
    font-size: 0.98rem;
    padding: 0.35rem 0.6rem;
  }
  .nav-links {
    position: absolute;
    top: 60px;
    right: 0;
    background: var(--nav-bg);
    flex-direction: column;
    width: 200px;
    display: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  }
  .menu-toggle:checked + .hamburger + .nav-links {
    display: flex;
  }
  .hamburger {
    display: block;
  }
}

/* Logo Flex and SVG */
.logo-flex {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--nav-text);
  height: 72px;
}
.logo-flex,
.logo-flex:visited,
.logo-flex:active,
.logo-flex:focus,
.logo-flex:hover {
  text-decoration: none;
  color: var(--nav-text);
}
.logo-svg {
  height: 38px;
  width: auto;
  display: block;
}

/* Hero Image Section */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--primary-gradient);
  color: var(--text-color);
  padding: 0 1rem 2rem 1rem;
  border-radius: 16px;
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden; /* ensures anything inside does not overflow the border */
}

.hero-img-wrap {
  position: relative;
  display: inline-block;
  margin: 10px auto 1.5rem auto;
}

.hero-img {
  display: block;
  max-width: 600px;
  width: auto;
  height: auto;
  border: 1px solid rgba(148,163,184,0.3);
  border-radius: 12px;
  padding: 0.5rem;
  background: #fff;
  box-shadow: 0 2px 8px rgba(15,23,42,0.05);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2); /* optional semi-transparent overlay */
  pointer-events: none;
}

/* Fade-in Animation */
.fade-in {
  animation: fadeIn 1.2s cubic-bezier(0.4,0,0.2,1);
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

/* Responsive Hero Text */
.hero-content h1 {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  margin-bottom: 0.5rem;
}
.hero-lead {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
}
.hero-desc {
  font-size: clamp(1rem, 2vw, 1.2rem);
}
.hero-content .cta-button {
  margin-top: 10px;
}

/* Responsive Spacing */
@media (max-width: 700px) {
  .hero-img-wrap {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
  .hero-img {
    border-radius: 10px;
    height: auto;
    max-width: 100%;
    width: 100%;
    padding: 0.4rem;
    object-fit: contain;
  }
  .hero-content {
    padding: 0 0.5rem;
  }
  .hero-overlay {
    display: none;
  }
}

/* Centered Text Utility */
.center {
  text-align: center;
}

/* About Avatar */
.about-avatar {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}
.avatar-img {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--primary-color);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Footer Flex and Socials */
.footer-flex {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
@media (min-width: 700px) {
  .footer-flex {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}
.socials {
  display: flex;
  gap: 0.7rem;
  align-items: center;
}
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: box-shadow 0.2s, background 0.2s;
}
.social-link:hover {
  background: var(--primary-color);
  box-shadow: 0 4px 16px rgba(37,99,235,0.10);
}
.social-link svg {
  width: 18px;
  height: 18px;
  display: block;
}

/* CTA Button */
.cta-button {
  display: inline-block;
  background: var(--button-color);
  color: var(--button-text);
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  transition: background 0.2s, transform 0.1s;
  min-height: 44px;
  min-width: 44px;
  line-height: 1.2;
  text-align: center;
}
.cta-button:hover {
  background: var(--accent-color);
  transform: translateY(-1px);
}
.cta-button:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}
/* Tap Target Accessibility */
.social-link, .nav-links a {
  min-height: 44px;
  min-width: 44px;
  line-height: 1.2;
}
.social-link:focus, .nav-links a:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Sections */
main {
  flex: 1;
}
section {
  margin-bottom: 2rem;
}

/* About Section */
.about ul {
  margin-top: 1rem;
  padding-left: 1.2rem;
}

/* Footer */
.footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  text-align: center;
  padding: 0.7rem 0;
  margin-top: auto;
  border-radius: 16px 16px 0 0;
  font-size: 0.95rem;
}
.footer-flex {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.footer p {
  margin: 0;
  font-size: 0.97rem;
}
@media (max-width: 700px) {
  .footer {
    padding: 0.5rem 0;
    font-size: 0.93rem;
  }
  .footer-flex {
    gap: 0.3rem;
  }
  .socials {
    gap: 0.5rem;
  }
  .social-link {
    width: 24px;
    height: 24px;
  }
  .social-link svg {
    width: 15px;
    height: 15px;
  }
}

.front-intro {
  background: var(--surface-color);
  border-radius: 18px;
  padding: clamp(1.5rem, 4vw, 3rem);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
  color: var(--text-color);
}
.front-text {
  max-width: 760px;
  margin: 0 auto;
}
.front-text p {
  font-size: 1.08rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}
.front-divider {
  text-align: center;
  font-size: 1.8rem;
  letter-spacing: 0.4rem;
  color: var(--primary-color);
  margin: 0.5rem 0 1.5rem;
}
.services-page {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.services-header {
  text-align: center;
  background: #fff;
  border-radius: 20px;
  padding: 2rem 1.5rem;
  box-shadow: 0 10px 30px rgba(15,23,42,0.08);
}
.services-header p:first-child {
  text-transform: uppercase;
  letter-spacing: 0.3rem;
  font-size: 0.8rem;
  color: var(--primary-color);
  margin-bottom: 0.4rem;
}
.services-header h1 {
  margin-bottom: 0.7rem;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}
.service-block {
  background: var(--surface-color);
  border-radius: 18px;
  padding: 1.75rem;
  box-shadow: 0 12px 30px rgba(15,23,42,0.07);
  border: 1px solid rgba(37,99,235,0.08);
}
.service-block.highlight {
  background: linear-gradient(135deg, rgba(37,99,235,0.08), rgba(96,165,250,0.15));
  border-color: rgba(37,99,235,0.25);
}
.service-block-header h2 {
  font-size: 1.4rem;
  margin-bottom: 0.4rem;
}
.service-block-header p {
  margin-bottom: 1rem;
  color: var(--accent-color);
  line-height: 1.6;
}
.service-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.service-column h3 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
  color: var(--primary-color);
}
.service-list-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.service-list-bullets li {
  padding-left: 1.4rem;
  position: relative;
  line-height: 1.6;
}
.service-list-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary-color);
}
.contact-page {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.contact-hero {
  text-align: center;
  background: #fff;
  border-radius: 20px;
  padding: 2rem 1.5rem;
  box-shadow: 0 12px 32px rgba(15,23,42,0.08);
}
.contact-hero p:first-child {
  text-transform: uppercase;
  letter-spacing: 0.3rem;
  font-size: 0.82rem;
  color: var(--primary-color);
  margin-bottom: 0.4rem;
}
.contact-hero h1 {
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  margin-bottom: 0.6rem;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}
.contact-card {
  background: var(--surface-color);
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: 0 12px 30px rgba(15,23,42,0.08);
  border: 1px solid rgba(37,99,235,0.1);
}
.contact-card h2 {
  margin-bottom: 0.5rem;
}
.contact-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.contact-list li {
  display: flex;
  justify-content: space-between;
  gap: 0.4rem;
  font-size: 1rem;
}
.contact-list li span {
  font-weight: 600;
  color: var(--accent-color);
}
.contact-list.bullet li {
  justify-content: flex-start;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  padding-left: 1.2rem;
}
.contact-list.bullet li span {
  font-weight: 400;
  color: inherit;
}
.contact-list.bullet li::before {
  content: "";
  position: absolute;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary-color);
}
.cta-button.secondary {
  background: transparent;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}
.front-values h2 {
  text-align: center;
  font-size: clamp(1.6rem, 3vw, 2rem);
  margin-bottom: 1.5rem;
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
}
.value-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #dbeafe;
  padding: 1.5rem;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}
.value-card h3 {
  margin-bottom: 0.4rem;
  font-size: 1.15rem;
  color: var(--primary-color);
}
.value-card p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--accent-color);
}
.portfolio-header {
  text-align: center;
  margin-bottom: 1.5rem;
  background: #fff;
  border-radius: 20px;
  padding: 2rem 1.5rem;
  box-shadow: 0 10px 30px rgba(15,23,42,0.07);
}
.portfolio-header p:first-child {
  text-transform: uppercase;
  letter-spacing: 0.28rem;
  font-size: 0.8rem;
  color: var(--primary-color);
  margin-bottom: 0.4rem;
}
.portfolio-header h1 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 0.6rem;
}
.about-values-list {
  display: block;
  margin: 1rem auto 1.5rem auto;
  padding: 0;
  max-width: 420px;
  list-style-position: inside;
  text-align: left;
}
.about-values-list li {
  margin-bottom: 0.5rem;
  font-size: 1.08rem;
} 


/* Portfolio Grid Layout */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}
.portfolio-card {
  background: var(--surface-color);
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(30,41,59,0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.18s, box-shadow 0.18s;
  color: var(--text-color);
}
.portfolio-card h2, .portfolio-card p {
  color: var(--text-color);
}
.portfolio-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 6px 24px rgba(30,41,59,0.13);
}
.portfolio-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 0 0 12px 12px;
  margin-bottom: 1rem;
}
.portfolio-card h2 {
  font-size: 1.18rem;
  margin: 0.5rem 0 0.3rem 0;
  text-align: center;
}
.portfolio-card p {
  font-size: 1rem;
  color: #334155;
  text-align: center;
  padding: 0 1rem 1.2rem 1rem;
}
@media (max-width: 700px) {
  .portfolio-grid {
    display: flex;
    overflow-x: auto;
    gap: 1.2rem;
    padding-bottom: 1rem;
    scroll-snap-type: x mandatory;
  }
  .portfolio-card {
    min-width: 260px;
    flex: 0 0 80vw;
    scroll-snap-align: start;
  }
} 

body.theme-blue .hero-img-wrap {
  border: 2px solid #2563eb;
}
body.theme-blue .hero-overlay {
  background: linear-gradient(180deg, rgba(37,99,235,0.10) 0%, rgba(96,165,250,0.18) 100%);
}
