/* =========================
   THEME VARIABLES
========================= */
/* =========================
   THEME TRANSITIONS
========================= */
:root {
  --safe-top: env(safe-area-inset-top, 0px);
}

html.theme-transition * {
  transition:
    background-color .35s ease,
    color .35s ease,
    border-color .35s ease,
    box-shadow .35s ease;
}
:root {
  --bg: #f3f3f3;
  --card: #ffffff;
  --text: #111111;
  --muted: #666666;
  --border: #e5e5e5;
  --shadow: 0 20px 50px rgba(0,0,0,.08);

  --radius-lg: 24px;
  --radius-pill: 999px;
}

[data-theme="dark"] {
  --bg: #0f0f0f;
  --card: #161616;
  --text: #f5f5f5;
  --muted: #9a9a9a;
  --border: #2a2a2a;
  --shadow: 0 25px 60px rgba(0,0,0,.6);
}

/* =========================
   RESET / BASE
========================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* =========================
   TOP BAR
========================= */
.topbar {
  transform: translateY(-120%);
  opacity: 0;
}

.topbar.ready {
  transform: translateY(0);
  opacity: 1;
}

.topbar {
  position: sticky;
  top: calc(1rem + var(--safe-top));
  z-index: 999;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.topbar {
  padding-top: calc(1rem + var(--safe-top));
}

@media (max-width: 768px) {
  .topbar {
    top: calc(0.75rem + var(--safe-top));
  }
}
.menu-overlay {
  padding-top: calc(6rem + var(--safe-top));
}
/* Hidden state */
.topbar.hide {
  transform: translateY(-120%);
  opacity: 0;
}
.topbar {
  max-width: 1100px;
  margin: 2rem auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--card);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow);
}

.logo {
  font-weight: 600;
}

.status {
  font-size: .85rem;
  color: #3cb371;
}
.topbar-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.theme-toggle[disabled] {
  opacity: .35;
  cursor: not-allowed;
  pointer-events: none;
}

.menu-btn {
  background: none;
  border: none;
  font-weight: 500;
  cursor: pointer;
  color: var(--text);
}

/* =========================
   LAYOUT
========================= */

.wrapper {
  max-width: 1100px;
  margin: 0 auto 6rem;
  display: grid;
  gap: 2rem;
}

/* =========================
   HERO IMAGE LAYOUT
========================= */

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 3rem;
  align-items: center;
}

.hero-image {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: var(--border);
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-image.subtle {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--border);
  opacity: 0.9;
}

.hero-image.subtle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(20%);
}

/* Subtle depth */
.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04);
}
.trust {
  margin-top: 18px;
  font-size: 13px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.hero-text {
  animation: fadeUp 0.8s ease-out both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* =========================
   HERO FLOATING LOGOS
========================= */

/* =========================
   HERO FLOATING LOGOS (REFINED)
========================= */

.hero-visual {
  position: relative;
  height: 360px;
  width: 100%;
  min-height: 360px;
  overflow: hidden;
}

/* Base logo style */
.hero-visual img {

    width: 120px;
  height: 120px;
  position: absolute;
  animation: float 7s ease-in-out infinite;
}

/* Primary logos */
.hero-visual .wp,
.hero-visual .laravel {
width: 120px;
    height: 120px;

}

.project-thumb img {
    max-width: 100%;
    height: auto;
}
/* Secondary logos */
.hero-visual .drupal,
.hero-visual .shopify,
.hero-visual .php {
width: 100px;
    height: 100px;

}

/* Float animation */
@keyframes float {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-12px); }
  100% { transform: translateY(0); }
}

/* === POSITIONING === */

/* Anchors */
.wp {
  top: 20%;
  left: 10%;
  animation-duration: 8s;
}

.laravel {
    top: 5%;
    right: 10%;
  animation-duration: 7s;
}

/* Orbiting */
.drupal {
top: 65%;
    left: 0%;
  animation-duration: 9s;
}

.shopify {
    bottom: 20%;
    left: 40%;

  animation-duration: 8.5s;
}

.php {
bottom: -10%;
    right: 5%;
  animation-duration: 9.5s;
}




[data-theme="dark"] .hero-visual img {
  filter: grayscale(100%) brightness(1.6);
  opacity: 0.9;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    display: none;
  }
}
.profile {
  display: flex;
  align-items: center;
  gap: 14px;
}

.avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-image: url('/assets/images/avatar.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

}

.avatar {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.avatar:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}
.avatar {
  padding: 3px;

}

/* Mobile */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-image {
    height: 280px;
  }
}


/* =========================
   CARDS
========================= */

.card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow);
  transition: transform .3s ease, box-shadow .3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 70px rgba(0,0,0,.15);
}

/* =========================
   HERO
========================= */

.profile {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}


.hero-text {
  max-width: 520px;
}

.hero-text h1 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.hero-text .lead {
  max-width: 480px;
  margin-bottom: 28px;
  opacity: 0.9;
}

.actions {
  display: flex;
  gap: 14px;
}
/* =========================
   BUTTONS
========================= */

.btn {
  padding: .9rem 1.5rem;
  border-radius: var(--radius-pill);
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.primary {
  background: var(--text);
  color: var(--bg);
}

.ghost {
  border: 1px solid var(--border);
  color: var(--text);
}

/* =========================
   MENU OVERLAY
========================= */

.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.2);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 6rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
  z-index: 1000;
}

.menu-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.menu-panel {
  background: var(--card);
  border-radius: 20px;
  padding: 2rem;
  width: min(90%, 360px);
  box-shadow: var(--shadow);
  display: grid;
  gap: 1rem;
  transform: translateY(-10px);
  transition: transform .3s ease;
}

.menu-overlay.active .menu-panel {
  transform: translateY(0);
}

.menu-link {
  font-size: 1.1rem;
  text-decoration: none;
  color: var(--text);
  padding: .75rem 1rem;
  border-radius: 12px;
}

.menu-link:hover {
  background: var(--border);
}

.menu-link.primary {
  background: var(--text);
  color: var(--bg);
  text-align: center;
}

/* =========================
   META / TESTIMONIAL
========================= */

.meta {
  display: grid;
  gap: 2rem;
}

.testimonial {
  display: flex;
  gap: 1rem;
}

.thumb {
  width: 64px;
  height: 48px;
  background: var(--border);
  border-radius: 8px;
}

.quote {
  font-size: .95rem;
}

.muted {
  color: var(--muted);
  font-size: .85rem;
}

.logos {
  display: flex;
  justify-content: space-between;
  opacity: .5;
  font-weight: 600;
}

/* =========================
   PROJECTS
========================= */


.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.project-card {
  background: var(--card-bg);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}

.project-thumb {
  height: auto;
  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.08),
    rgba(255,255,255,0.02)
  );
}

.project-body {
  padding: 22px;
}

.project-body h3 {
  margin-bottom: 8px;
}

.project-body p {
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.85;
  margin-bottom: 14px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.project-tags span {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
}

.project-link {
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: var(--accent);
}

@media (max-width: 768px) {
    .project-thumb {
        height: auto !important;
        margin-bottom: 30px;
    }
}

/* =========================
   SERVICES
========================= */

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
      margin-top: 30px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  margin-bottom: .5rem;
}

.section-header p {
  max-width: 520px;
}

.service-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.75rem;
  transition: transform .25s ease, box-shadow .25s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.service-card h3 {
  font-size: 1.1rem;
  margin-bottom: .75rem;
}

.service-card p {
  font-size: .95rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.service-meta {
  font-size: .8rem;
  color: var(--muted);
  opacity: .8;
}

/* Mobile */
@media (max-width: 700px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================
   DARK MODE TOGGLE
========================= */

.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.theme-icon {
  width: 22px;
  height: 22px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.theme-toggle:hover .theme-icon {
  opacity: 0.75;
  transform: rotate(10deg);
}
/* =========================
   BURGER MENU
========================= */

.menu-btn {
  width: 28px;
  height: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.menu-btn span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Burger → X (when menu open) */
.menu-btn[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}

.menu-btn[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-btn[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}
/* =========================
   RESPONSIVE
========================= */

@media (max-width: 768px) {
  .card {
    padding: 1.75rem;
  }

  .topbar {
    margin: 1rem;
  }
    .actions {
    flex-direction: column;
  }

  .actions .btn {
    width: 100%;
  }
    .menu-btn,
  .theme-toggle {
    padding: 6px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html.theme-transition * {
    transition: none !important;
  }
}

.contact-cta {
  text-align: center;
  padding: 4rem 2rem;
}

.contact-cta h2 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.contact-cta .lead {
  max-width: 520px;
  margin: 0 auto 2rem;
  color: var(--muted);
}

.contact-methods {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.contact-item {
  min-width: 260px;
  padding: 1.25rem 1.5rem;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.contact-item .label {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.contact-item .value {
  font-weight: 600;
  font-size: 1.05rem;
}

.contact-note {
  margin-top: 1.75rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.about.with-photo {
  padding: 3.5rem;
}

.about-grid.with-photo {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 3rem;
  align-items: center;
}
.photo-mask {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  
}

.photo-mask::after {
  height: 45%; /* stronger fade */
}


.about-photo {
  align-self: flex-end; /* anchor to bottom */
}

.about-photo img {
    width: 100%;
    max-width: 420px;
    height: auto;
    transform: translateY(10px);
}
.about-text h2 {
  margin-bottom: 1rem;
}

.about-text .lead {
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 1.25rem;
}

.about-highlights {
  list-style: none;
  padding: 0;
  margin-top: 1.5rem;
  display: grid;
  gap: 0.5rem;
}

.about-highlights li {
  font-size: 0.9rem;
  color: var(--muted);
}

.about-grid.with-photo {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 3rem;
  align-items: end;
}
/* Responsive */
@media (max-width: 768px) {
  .about-grid.with-photo {
    grid-template-columns: 1fr;
    text-align: center;
  }

    .about-photo img {
    max-width: 280px;
    transform: translateY(16px);
    margin: 0 auto;
  }
}


section#about {
    padding-bottom: 0;
}

.about-text {
    padding-bottom: 3em;
}


.footer {
  padding: 0 1.5rem;

}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}

.footer-left strong {
  display: block;
  font-weight: 600;
}

.footer-left .muted {
  font-size: 0.85rem;
}

.footer-center {
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-center a {
  color: inherit;
  text-decoration: none;
}

.footer-center a:hover {
  text-decoration: underline;
}

.footer-right {
  text-align: right;
  font-size: 0.85rem;
}

/* Mobile */
@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-right {
    text-align: center;
  }
}

/* Scroll reveal base */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease;
}

/* Optional delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* =========================
   MOBILE DEVELOPMENT
========================= */

.mobile-development {
  display: block;
}

.mobile-grid {
    display: grid;
    gap: 2.5rem;
    margin-top: 30px;
}
/* Card */
.mobile-card {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 900px) {
  .mobile-card {
    grid-template-columns: 1fr;
  }
}

/* App Image */


[data-theme="dark"] .mobile-media {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(0,0,0,0));
}

.mobile-media img {
  width: 100%;
  height: auto;
  display: block;
}

/* Content */
.mobile-body h3 {
  margin-bottom: 0.4rem;
}

.mobile-subtitle {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1.2rem;
}

.mobile-body p {
  margin-bottom: 1rem;
  max-width: 560px;
}

/* Features */
.mobile-features {
  margin: 1.2rem 0 1.6rem;
  padding-left: 1.2rem;
}

.mobile-features li {
  margin-bottom: 0.5rem;
  color: var(--text);
}

/* Meta tags */
.mobile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.4rem;
}

.mobile-meta span {
  font-size: 0.75rem;
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius-pill);
  background: var(--border);
  color: var(--text);
}

/* Store availability */
.store-links {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.85rem;
}

.store-links span {
  opacity: 0.9;
}

/* Reveal animation harmony */
.mobile-development.reveal.visible {
  animation: fadeUp 0.6s ease-out both;
}

/* =========================
   TRUSTED COLLABORATORS
========================= */

.collaborators {
  display: grid;
  gap: 2rem;
}

/* Grid wrapper (future-proof for more collaborators) */
.collaborators-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

/* Collaborator Card */
.collaborator-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 1.5rem;

  padding: 2rem;
  background: var(--card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

/* Avatar / Initials */
.collaborator-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;

  background: var(--bg);
  border: 1px solid var(--border);

  display: flex;
  align-items: center;
  justify-content: center;

  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  color: var(--muted);
}

/* If you later use an image */
.collaborator-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* Body */
.collaborator-body h3 {
  margin-bottom: 0.25rem;
  line-height: 1.2;
}

/* Role */
.collaborator-role {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

/* Description */
.collaborator-desc {
 
  margin-bottom: 1rem;
  opacity: 0.95;
}

/* Skill / Service Tags */
.collaborator-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.collaborator-tags span {
  font-size: 0.75rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--muted);
  white-space: nowrap;
}

/* Portfolio Button */
.collaborator-link {
  width: fit-content;
}

/* Mobile */
@media (max-width: 700px) {
  .collaborator-card {
    grid-template-columns: 1fr;
  }

  .collaborator-avatar {
    width: 56px;
    height: 56px;
  }
}
