/* OSOM DIZAJN - Modern Architectural Design System */

/* CSS Variables & Tokens */
:root {
  /* Fonts */
  --font-headings: 'Poppins', sans-serif;
  --font-body: 'Poppins', sans-serif;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);

  /* Borders & Radius */
  --radius-sm: 4px;
  --radius-md: 4px; /* Perfectly balanced minimalist corners */
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  /* Layout */
  --header-height: 80px;
  --container-max-width: 1280px;
}

/* Dark Theme (Default) */
body.dark-theme {
  --bg-primary: #0e0e10;
  --bg-secondary: #16161a;
  --bg-tertiary: #1f1f26;
  --bg-glass: rgba(14, 14, 16, 0.75);
  --bg-glass-card: rgba(22, 22, 26, 0.6);
  
  --text-primary: #f3f4f6;
  --text-secondary: #a1a1aa;
  --text-tertiary: #71717a;
  
  --accent: #C6E3F7; /* Pastel architectural blue */
  --accent-hover: #bce0f7;
  --accent-rgb: 160, 203, 232;
  
  --border-color: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(160, 203, 232, 0.5);
  
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 32px rgba(0, 0, 0, 0.5);
  
  --selection-bg: rgba(160, 203, 232, 0.2);
}

/* Light Theme */
body.light-theme {
  --bg-primary: #fbfbf9; /* Clean Warm Off-white */
  --bg-secondary: #ffffff;
  --bg-tertiary: #f4f3ef;
  --bg-glass: rgba(251, 251, 249, 0.8);
  --bg-glass-card: rgba(255, 255, 255, 0.8);
  
  --text-primary: #18181b;
  --text-secondary: #52525b;
  --text-tertiary: #a1a1aa;
  
  --accent: #587695; /* Elegant architectural blue-gray */
  --accent-hover: #435d7a;
  --accent-rgb: 88, 118, 149;
  
  --border-color: rgba(24, 24, 27, 0.08);
  --border-focus: rgba(88, 118, 149, 0.5);
  
  --shadow-sm: 0 2px 4px rgba(24, 24, 27, 0.05);
  --shadow-md: 0 8px 24px rgba(24, 24, 27, 0.08);
  --shadow-lg: 0 16px 48px rgba(24, 24, 27, 0.12);
  
  --selection-bg: rgba(88, 118, 149, 0.15);
}

/* Base Styles & Resets */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  font-size: 14px;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

::selection {
  background-color: var(--selection-bg);
  color: var(--text-primary);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button, input, textarea, select {
  font-family: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
}

ul, ol {
  list-style:none ;
}

ul:not(.nav-list) {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

ul:not(.nav-list) li {
  position: relative;
  padding-left: 1.5rem;
}

ul:not(.nav-list) li::before {
  content: '↗';
  color: var(--accent);
  position: absolute;
  left: 0;
  font-size: 1rem;
  line-height: 1;
  top: 1px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-right: auto;
  margin-left: auto;
  padding-right: 2rem;
  padding-left: 2rem;
}

/* Layout Padding Helper */
section {
  padding: 5rem 0 0 0;
}

/* Typography elements */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headings);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

/* Helper Components & Utilities */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2rem;
  font-family: var(--font-headings);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: all var(--transition-normal);
  margin: 1.5rem;
}

.btn-primary {
  background-color: var(--accent);
  color: #000000;
}

body.light-theme .btn-primary {
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(var(--accent-rgb), 0.3);
}

.btn-outline {
  border: 1px solid var(--border-color);
  background-color: transparent;
  color: var(--text-primary);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background-color: rgba(var(--accent-rgb), 0.05);
  transform: translateY(-2px);
}

.icon-right {
  margin-left: 0.75rem;
  transition: transform var(--transition-fast);
}

.btn:hover .icon-right {
  transform: translateX(4px);
}

.icon-left {
  margin-right: 0.75rem;
}

.gradient-text {
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Section Header Styles */
.section-header {
  margin-bottom: 3.5rem;
  text-align: center;
}

.subtitle {
  font-family: var(--font-headings);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  display: block;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.section-title {
  font-size: 2.75rem;
  font-weight: 500;
}

.section-line {
  width: 50px;
  height: 2px;
  background-color: var(--accent);
  margin: 1.5rem auto 1.5rem;
}

/* Glassmorphic Header Component */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 100;
  background-color: transparent;
  transition: all var(--transition-normal);
  border-bottom: 1px solid transparent;
}

.main-header.scrolled {
  background-color: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  height: 70px;
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.logo-link {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 38px;
  width: auto;
  display: block;
  transition: transform var(--transition-normal), opacity var(--transition-normal);
}

.logo-link:hover .logo-img {
  transform: scale(1.02);
  opacity: 0.85;
}

.logo-mono-light {
  display: block;
}

.logo-mono-dark {
  display: none;
}

body.light-theme .logo-mono-light {
  display: none;
}

body.light-theme .logo-mono-dark {
  display: block;
}

/* Navigation Links */
.nav-menu {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  gap: 2.5rem;
}

.nav-link {
  font-family: var(--font-headings);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-secondary);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: width var(--transition-normal);
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

/* Header Action Buttons */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.theme-toggle-btn {
  font-size: 1.2rem;
  color: var(--text-secondary);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  transition: all var(--transition-normal);
}

.theme-toggle-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
  background-color: rgba(var(--accent-rgb), 0.05);
}

/* Switch Icon Display based on Theme */
body.dark-theme #theme-icon-sun { display: block; }
body.dark-theme #theme-icon-moon { display: none; }
body.light-theme #theme-icon-sun { display: none; }
body.light-theme #theme-icon-moon { display: block; }

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background-color: transparent;
}

.mobile-menu-toggle .bar {
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-normal);
}

/* Hero Section Styling */
.hero-section {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  padding: 0;
  background-image: url('images/ui/osom-bg.webp'); /* Premium Architectural Backdrop */
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(14, 14, 16, 0.95) 30%, rgba(14, 14, 16, 0.4));
}

body.light-theme .hero-overlay {
  background: linear-gradient(to right, rgba(251, 251, 249, 0.95) 30%, rgba(251, 251, 249, 0.4));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0;
  margin-top: var(--header-height);
}

.hero-tag {
  font-family: var(--font-headings);
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.hero-title {
  font-size: 4.5rem;
  font-weight: 500;
  line-height: 1.1;
  margin-bottom: 2rem;
  word-wrap: break-word;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
}

.hero-actions .btn {
  margin: 0;
}

/* Scroll down indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
  color: var(--text-secondary);
  font-family: var(--font-headings);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.scroll-mouse {
  width: 22px;
  height: 36px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-full);
  position: relative;
  margin-bottom: 0.5rem;
}

.scroll-wheel {
  width: 4px;
  height: 8px;
  background-color: var(--accent);
  border-radius: var(--radius-full);
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll-wheel-anim 1.8s infinite ease-in-out;
}

@keyframes scroll-wheel-anim {
  0% { top: 6px; opacity: 1; }
  50% { top: 16px; opacity: 0; }
  100% { top: 6px; opacity: 1; }
}

/* Micro-animations classes */
.animate-up {
  animation: fade-in-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.animate-up-delay {
  opacity: 0;
  animation: fade-in-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}
.animate-up-delay-2 {
  opacity: 0;
  animation: fade-in-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}

@keyframes fade-in-up {
  0% { transform: translateY(30px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

/* Portfolio Section & Filters */
.filter-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  margin-bottom: 4rem;
}

.filter-btn {
  font-family: var(--font-headings);
  font-size: 0.85rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 0.5rem 1.8rem;
  border: none;
  background: transparent;
  color: var(--text-tertiary);
  transition: all var(--transition-normal);
  cursor: pointer;
  position: relative;
}

.filter-btn::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: width var(--transition-normal);
}

.filter-btn:hover {
  color: var(--text-primary);
}

.filter-btn.active {
  color: var(--text-primary);
  font-weight: 600;
}

.filter-btn.active::after {
  width: 20px;
}

.filter-btn:not(:last-child)::before {
  content: '/';
  position: absolute;
  right: -2px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--border-color);
  pointer-events: none;
  font-weight: 300;
}

.portfolio-grid {
  display: flex;
  gap: 7px;
  width: 100%;
  position: relative;
  min-height: 250px;
}

.portfolio-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.loading-spinner {
  grid-column: 1 / -1;
  column-span: all;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 0;
  color: var(--text-secondary);
  font-family: var(--font-headings);
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-color);
  border-top-color: var(--accent);
  border-radius: var(--radius-full);
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

@keyframes spin {
  100% { transform: rotate(360deg); }
}

/* Card item styling */
.project-card {
  position: relative;
  background-color: var(--bg-glass-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(20px);
}

.project-card.show {
  opacity: 1;
  transform: translateY(0);
}


.project-img-wrapper {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background-color: var(--bg-tertiary);
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

/* Overlay visible on hover */
.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(14, 14, 16, 0.9) 20%, rgba(14, 14, 16, 0.1));
  display: flex;
  align-items: flex-end;
  padding: 2rem;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

body.light-theme .project-overlay {
  background: linear-gradient(to top, rgba(251, 251, 249, 0.95) 20%, rgba(251, 251, 249, 0.1));
}

.project-overlay-content {
  transform: translateY(20px);
  transition: transform var(--transition-normal);
  width: 100%;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.project-card:hover .project-img {
  transform: scale(1.08);
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-card:hover .project-overlay-content {
  transform: translateY(0);
}

.project-card-title {
  font-family: var(--font-headings);
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.project-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.project-card-category {
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  color: var(--accent);
}

/* Fallback card info when hover overlay is not supported or active */
.project-info-fallback {
  padding: 1.5rem;
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
}

.project-info-fallback h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

/* Blog / Dziennik Grid Layout */
.blog-grid {
  display: flex;
  gap: 7px;
  width: 100%;
}

.blog-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.blog-card {
  background-color: var(--bg-glass-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  width: 100%;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.blog-img-wrapper {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background-color: var(--bg-tertiary);
}

.blog-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.blog-card:hover .blog-img {
  transform: scale(1.05);
}

.blog-card-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-tertiary);
  margin-bottom: 1rem;
}

.blog-card-dot {
  width: 4px;
  height: 4px;
  background-color: var(--accent);
  border-radius: var(--radius-full);
  margin: 0 0.75rem;
}

.blog-card-title {
  font-family: var(--font-headings);
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.blog-card-summary {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  font-family: var(--font-headings);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
}

.blog-card-footer i {
  margin-left: 0.5rem;
  transition: transform var(--transition-fast);
}

.blog-card:hover .blog-card-footer i {
  transform: translateX(4px);
}

/* About Section & Biography */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 4rem;
  align-items: flex-start;
}

.about-text {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

/* Bio Card */
.bio-card {
  background-color: var(--bg-secondary);
  border-left: 4px solid var(--accent);
  padding: 2rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.bio-photo-wrapper {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--accent);
}

.bio-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.bio-content-wrapper {
  flex-grow: 1;
}

.bio-name {
  font-size: 1.35rem;
  margin-bottom: 0.25rem;
}

.bio-title {
  font-family: var(--font-headings);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 1rem;
}

.bio-text {
  font-size: 14px;
  color: var(--text-secondary);
  font-style: italic;
}

@media (max-width: 640px) {
  .bio-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-left: none;
    border-top: 4px solid var(--accent);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
  }
}

/* Services column box representation */
.about-services {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Offer Section */
.offer-section {
  padding: 6rem 0;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

body.dark-theme .offer-section {
  background-color: #f4f3ef; /* light background in dark mode */
  color: #18181b;
  --bg-glass-card: #ffffff;
  --border-color: rgba(24, 24, 27, 0.08);
  --text-primary: #18181b;
  --text-secondary: #52525b;
  --accent: #587695;
  --accent-hover: #435d7a;
}

body.light-theme .offer-section {
  background-color: #16161a; /* dark background in light mode */
  color: #f3f4f6;
  --bg-glass-card: #0e0e10;
  --border-color: rgba(255, 255, 255, 0.08);
  --text-primary: #f3f4f6;
  --text-secondary: #a1a1aa;
  --accent: #C6E3F7;
  --accent-hover: #bce0f7;
}

.offer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 2rem;
  margin-top: 3rem;
}

@media (max-width: 768px) {
  .offer-grid {
    grid-template-columns: 1fr;
  }
}

.service-box {
  background-color: var(--bg-glass-card);
  border: 1px solid var(--border-color);
  padding: 2.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition-normal);
}

.service-box:hover {
  border-color: var(--accent);
}

.service-icon {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.service-title {
  font-size: 1.35rem;
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
}

.service-list {
  font-size: 14px;
  color: var(--text-secondary);
}

/* Contact Section & Form Styles */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 4rem;
}

.contact-map-wrapper {
  margin-bottom: 2.5rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  height: 280px;
  width: 100%;
}

.contact-map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: grayscale(1) invert(0.9) contrast(1.2);
  transition: filter var(--transition-normal);
}

body.light-theme .contact-map-wrapper iframe {
  filter: none;
}

.contact-lead-text {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 3rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
 gap: 1.5rem;
 
 
}

.c-icon {
  width: 48px;
  height: 48px;
  background-color: rgba(var(--accent-rgb), 0.08);
  border: 1px solid rgba(var(--accent-rgb), 0.15);
  color: var(--accent);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.c-text {
  display: flex;
  flex-direction: column;
}

.c-label {
  font-family: var(--font-headings);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-tertiary);
  margin-bottom: 0.25rem;
}

.c-link {
  font-size: 1.1rem;
  font-weight: 500;
}

.c-link:hover {
  color: var(--accent);
}

.c-val {
  font-size: 1.05rem;
  color: var(--text-primary);
  line-height: 1.5;
}

/* Social link wrapping */
.social-wrapper {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.social-label {
  font-family: var(--font-headings);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-normal);
}

.social-links a:hover {
  background-color: var(--accent);
  color: #000000;
  border-color: var(--accent);
  transform: translateY(-3px);
}

body.light-theme .social-links a:hover {
  color: #ffffff;
}

/* Form Styles */
.contact-form-panel {
  background-color: var(--bg-secondary);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 3rem;
  box-shadow: var(--shadow-sm);
  height: fit-content;
}

.form-title {
  font-size: 1.5rem;
  margin-bottom: 2.5rem;
}

.form-group {
  position: relative;
  margin-bottom: 2rem;
}

.form-control {
  width: 100%;
  border-bottom: 2px solid var(--border-color);
  padding: 0.75rem 0;
  font-size: 1rem;
  background: transparent;
  color: var(--text-primary);
  transition: border-color var(--transition-normal);
}

/* Auto-expanding textbox on focus */
.form-control::placeholder {
  color: transparent;
}

.form-label {
  position: absolute;
  top: 0.75rem;
  left: 0;
  font-size: 1rem;
  color: var(--text-secondary);
  transition: all var(--transition-normal);
  pointer-events: none;
}

/* Focus and values logic for labels */
.form-control:focus ~ .form-label,
.form-control:not(:placeholder-shown) ~ .form-label {
  top: -1.25rem;
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.form-control:focus {
  border-bottom-color: var(--accent);
}

.form-submit {
  width: 100%;
  margin-top: 1.5rem;
}

.form-status {
  margin-top: 1.5rem;
  font-size: 0.95rem;
  text-align: center;
}

.form-status.success {
  color: #10b981;
}

.form-status.error {
  color: #ef4444;
}

/* Fullscreen Lightbox Modal (Projects) Style */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.lightbox-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(14, 14, 16, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

body.light-theme .lightbox-overlay {
  background-color: rgba(251, 251, 249, 0.95);
}

.lightbox-container {
  position: relative;
  z-index: 2;
  width: 90%;
  max-width: 1200px;
  height: auto;
  max-height: 90vh;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: flex;
  transform: scale(0.95);
  transition: transform var(--transition-normal);
}

.lightbox-modal.active .lightbox-container {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 10;
  width: 48px;
  height: 48px;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--text-primary);
  transition: all var(--transition-normal);
}

.lightbox-close:hover {
  background-color: var(--accent);
  color: #000000;
  border-color: var(--accent);
  transform: rotate(90deg);
}

body.light-theme .lightbox-close:hover {
  color: #ffffff;
}

/* Lightbox Inner Layout grid */
.lightbox-content-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  width: 100%;
  height: auto;
  max-height: 90vh;
}

.lightbox-media-wrapper {
  position: relative;
  background-color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  height: auto;
  min-height: 400px;
  max-height: 90vh;
}

.lightbox-slider {
  width: 100%;
  height: auto;
  display: flex;
  transition: transform var(--transition-normal);
}

.slider-slide {
  min-width: 100%;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-slide img {
  width: 100%;
  height: auto;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background-color: rgba(22, 22, 26, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  transition: all var(--transition-normal);
  z-index: 5;
}

.slider-arrow:hover {
  background-color: var(--accent);
  color: #000000;
  border-color: var(--accent);
}

.slider-arrow.prev { left: 1.5rem; }
.slider-arrow.next { right: 1.5rem; }

.slider-dots {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 5;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, 0.4);
  transition: all var(--transition-normal);
  cursor: pointer;
}

.dot.active {
  width: 24px;
  background-color: var(--accent);
}

/* Lightbox Text Area Details */
.lightbox-details {
  padding: 4rem;
  overflow-y: auto;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.details-category {
  font-family: var(--font-headings);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.details-title {
  font-size: 2.2rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.details-meta {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.meta-item i {
  color: var(--accent);
  margin-right: 0.5rem;
}

.details-description {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Fullscreen Reader Modal (Blog Articles) Style */
.reader-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.reader-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.reader-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(14, 14, 16, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

body.light-theme .reader-overlay {
  background-color: rgba(251, 251, 249, 0.95);
}

.reader-container {
  position: relative;
  z-index: 2;
  width: 90%;
  max-width: 900px;
  height: 90vh;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: scale(0.95);
  transition: transform var(--transition-normal);
}

.reader-modal.active .reader-container {
  transform: scale(1);
}

.reader-close {
  position: fixed;
  top: 2rem;
  right: calc(5% + 1rem);
  z-index: 1001;
  width: 48px;
  height: 48px;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--text-primary);
  transition: all var(--transition-normal);
}

.reader-close:hover {
  background-color: var(--accent);
  color: #000000;
  border-color: var(--accent);
  transform: rotate(90deg);
}

body.light-theme .reader-close:hover {
  color: #ffffff;
}

/* Reader Typography & Layout */
.reader-article {
  padding: 5rem 6rem;
  max-width: 800px;
  margin: 0 auto;
}

.article-header {
  margin-bottom: 3rem;
}

.article-meta {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  color: var(--text-tertiary);
  margin-bottom: 1rem;
}

.article-dot {
  width: 4px;
  height: 4px;
  background-color: var(--accent);
  border-radius: var(--radius-full);
  margin: 0 0.75rem;
}

.article-title {
  font-size: 2.2rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.article-tag {
  font-size: 14px;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0;
  color: var(--text-secondary);
  line-height: 1.25;
}

.article-tag::before {
  content: '↗';
  color: var(--accent);
  margin-right: 0.25rem;
  font-weight: 600; /* make the arrow slightly visible/defined */
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.project-tag {
  font-size: 14px;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0;
  color: var(--text-secondary);
  line-height: 1.25;
}

.project-tag::before {
  content: '↗';
  color: var(--accent);
  margin-right: 0.25rem;
  font-weight: 600;
}

.article-hero-image {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--bg-tertiary);
  border-radius: var(--radius-md);
  margin-bottom: 3.5rem;
  overflow: hidden;
  width: 100%;
  height: auto;
}

@media (max-width: 768px) {
  .article-hero-image {
    height: auto;
    margin-bottom: 2rem;
  }
}

.article-hero-image > img {
  width: 100%;
  height: auto;
}

.article-content {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* Dynamic HTML inserted styling inside Article */
.article-content p {
  margin-bottom: 1.75rem;
}

.article-content h3 {
  font-size: 1.65rem;
  margin: 3rem 0 1.25rem;
  color: var(--text-primary);
}

.article-content ul, .article-content ol {
  margin-bottom: 1.75rem;
}

.article-content ul li {
  margin-bottom: 0.5rem;
}

.article-content strong {
  color: var(--text-primary);
}

.article-content blockquote {
  border-left: 4px solid var(--accent);
  padding-left: 1.5rem;
  font-style: italic;
  margin: 2.5rem 0;
  font-size: 1.2rem;
  color: var(--text-primary);
}

/* Main Footer Styles */
.main-footer {
  padding: 4rem 0;
  font-size: 0.9rem;
  border-top: 1px solid var(--border-color);
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

body.dark-theme .main-footer {
  background-color: #f4f3ef; /* light background in dark mode */
  color: #18181b;
  --text-primary: #18181b;
  --text-secondary: #52525b;
  --text-tertiary: #71717a;
  --border-color: rgba(24, 24, 27, 0.08);
  --accent: #587695;
  --accent-hover: #435d7a;
}

body.light-theme .main-footer {
  background-color: #16161a; /* dark background in light mode */
  color: #f3f4f6;
  --text-primary: #f3f4f6;
  --text-secondary: #a1a1aa;
  --text-tertiary: #71717a;
  --border-color: rgba(255, 255, 255, 0.08);
  --accent: #C6E3F7;
  --accent-hover: #bce0f7;
}

.footer-grid {
  display: grid;
  grid-template-columns: 0.7fr 2.3fr 1.5fr;
  grid-gap: 2rem;
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-left: 4px solid var(--accent);
  padding-left: 1rem;
}

.footer-company-data {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.25;
}

.footer-col-title {
  font-family: var(--font-headings);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.footer-links-list {
  gap: 0.1rem;
  font-size: 11px;
}

.footer-links-list li {
  padding-left: 1.2rem;
}

.footer-links-list li::before {
  font-size: 0.9rem;
  top: 2px;
}

.footer-links-list a {
  color: var(--text-secondary);
  transition: color var(--transition-fast), transform var(--transition-fast);
  display: inline-block;
}

.footer-links-list a:hover {
  color: var(--accent);
  transform: translateX(4px);
}

.footer-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
}

.disclaimer {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  margin-top: 0.2rem;
}

.back-to-top-btn {
  font-family: var(--font-headings);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
}

.back-to-top-btn:hover {
  color: var(--accent);
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  section {
    padding: 6rem 0;
  }

  
  .hero-title {
    font-size: 3.5rem;
  }
  
  .about-grid, .contact-grid {
    grid-template-columns: 1fr;
    grid-gap: 4rem;
  }
  
  .lightbox-content-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    height: auto;
    max-height: 95vh;
  }
  
  .lightbox-details {
    padding: 2.5rem;
  }
  
  .lightbox-container {
    height: auto;
    max-height: 95vh;
  }
  
  .reader-article {
    padding: 4rem 3rem;
  }
}

@media (max-width: 768px) {
  .filter-btn {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }

  /* Mobile menu logic */
  .mobile-menu-toggle {
    display: flex;
    z-index: 1002;
  }
  
  /* Menu styling when collapsed */
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100vh;
    background-color: var(--bg-secondary);
    border-left: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    z-index: 1001;
    padding: 8rem 3rem 3rem;
    transition: right var(--transition-normal);
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .nav-list {
    flex-direction: column;
    gap: 2rem;
  }
  
  .nav-link {
    font-size: 1.2rem;
  }
  
  /* Hamburger animation */
  .mobile-menu-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  
  .mobile-menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }
  
  .mobile-menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  
  .hero-content {
    padding: 0;
  }
  
  .hero-title {
    font-size: 2.75rem;
  }
  
  .hero-actions {
    flex-direction: column;
    gap: 1rem;
  }
  
  .btn {
    width: 100%;
    margin: 1rem 0;
  }
  
  
  .contact-form-panel {
    padding: 2rem;
    border-left: none;
    border-top: 4px solid var(--accent);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    grid-gap: 2rem;
  }
  
  .footer-info {
    border-left: none;
    border-top: 4px solid var(--accent);
    padding-left: 0;
    padding-top: 1.5rem;
  }
  
  .footer-actions {
    align-items: flex-start;
  }
}
