/*
Theme Name: Architect Portfolio
Theme URI: https://example.com
Author: Architect Theme
Author URI: https://example.com
Description: A modern, minimal WordPress theme for architecture graduate portfolios. Features custom project post type, category filtering, case study layouts, and Bootstrap 5 integration.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: architect-theme
Tags: portfolio, architecture, bootstrap, custom-post-types, responsive, minimal, modern

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.
*/

/* ==========================================================================
   Base Styles
   ========================================================================== */

:root {
  --primary-color: #1a1a1a;
  --secondary-color: #666;
  --accent-color: #100217;
  --light-bg: #f8f9fa;
  --border-color: #e0e0e0;
  --blueprint-blue: #100217;
  --grid-line: rgba(0, 102, 204, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--primary-color);
  background: #fff;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

h1 {
  font-size: 2.5rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2rem;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.5rem;
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--primary-color);
}

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

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.site-header {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  padding: 1.5rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.site-header.scrolled {
  padding: 1rem 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.site-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.site-logo:hover {
  color: var(--accent-color);
}

/* Header CTA Wrapper */
.header-cta-wrapper {
  height: 100%;
}

.header-social-icons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: transparent;
  color: var(--secondary-color);
  font-size: 0.9rem;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.header-social-icon:hover {
  background: var(--accent-color);
  color: white;
  border-color: var(--accent-color);
  transform: translateY(-2px);
}

/* Centered Navigation */
.main-navigation .nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2rem;
}

.main-navigation a {
  color: var(--primary-color);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 0.5rem 0;
  position: relative;
  display: inline-block;
}

.main-navigation a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: width 0.3s ease;
}

.main-navigation a:hover::after,
.main-navigation a.current::after {
  width: 100%;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

@media (max-width: 991px) {
  .mobile-menu-toggle {
    display: block;
  }

  .main-navigation {
    display: none;
  }

  .main-navigation.active {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid var(--border-color);
    padding: 1rem 0;
  }

  .main-navigation ul {
    flex-direction: column;
    gap: 0;
  }

  .main-navigation li {
    border-bottom: 1px solid var(--border-color);
  }

  .main-navigation a {
    display: block;
    padding: 1rem 1.5rem;
  }
}

/* ==========================================================================
   Hero Section - Architecture Blueprint Style
   ========================================================================== */

.hero-architecture {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #1a1a1a;
}

/* Background Image Layer */
.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  background-size: cover;
  background-position: center center;
  z-index: 1;
}

/* Blueprint Grid Overlay */
.hero-blueprint-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(0deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 30px 30px;
  z-index: 2;
  animation: blueprintShift 60s linear infinite;
}

@keyframes blueprintShift {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 30px 30px;
  }
}

/* Sketch Line Overlay */
.hero-sketch-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 10px,
      rgba(255, 255, 255, 0.01) 10px,
      rgba(255, 255, 255, 0.01) 11px
    ),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 10px,
      rgba(255, 255, 255, 0.01) 10px,
      rgba(255, 255, 255, 0.01) 11px
    );
  z-index: 3;
  opacity: 0.5;
}

/* Dark Overlay */
.hero-dark-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 4;
}

/* Content Wrapper */
.hero-content-wrapper {
  position: relative;
  z-index: 10;
  width: 100%;
  padding: 4rem 0;
}

.hero-text-content {
  animation: heroFadeIn 1s ease forwards;
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-title {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: white;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2.5rem;
  line-height: 1.6;
  max-width: 600px;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Architecture Sketch SVG */
.hero-sketch-svg {
  position: relative;
  animation: sketchDraw 2s ease forwards;
  animation-delay: 0.5s;
  opacity: 0;
}

@keyframes sketchDraw {
  from {
    opacity: 0;
    transform: translateX(50px) rotate(2deg);
  }
  to {
    opacity: 1;
    transform: translateX(0) rotate(0deg);
  }
}

.architecture-sketch {
  width: 100%;
  height: auto;
  max-width: 400px;
  color: rgba(255, 255, 255, 0.15);
  filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.1));
}

.architecture-sketch path,
.architecture-sketch rect,
.architecture-sketch line {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: drawLine 3s ease forwards;
}

.architecture-sketch path:nth-child(1) { animation-delay: 0.5s; }
.architecture-sketch path:nth-child(2) { animation-delay: 0.7s; }
.architecture-sketch path:nth-child(3) { animation-delay: 0.9s; }
.architecture-sketch rect { animation-delay: 1.5s; animation-duration: 1s; }
.architecture-sketch line { animation-delay: 2s; animation-duration: 0.5s; }

@keyframes drawLine {
  to {
    stroke-dashoffset: 0;
  }
}

/* Responsive */
@media (max-width: 991px) {
  .hero-architecture {
    min-height: 60vh;
  }

  .hero-title {
    font-size: 3rem;
  }

  .hero-subtitle {
    font-size: 1.25rem;
  }
}

@media (max-width: 768px) {
  .hero-architecture {
    min-height: 65vh;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .hero-cta {
    flex-direction: column;
    gap: 0.75rem;
  }

  .btn-primary-custom,
  .btn-outline-custom {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

/* Accessibility: Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .hero-blueprint-overlay {
    animation: none;
  }
  
  .hero-text-content,
  .hero-sketch-svg,
  .architecture-sketch path,
  .architecture-sketch rect,
  .architecture-sketch line {
    animation: none;
    opacity: 1;
    transform: none;
    stroke-dashoffset: 0;
  }
}

.btn-primary-custom {
  background: var(--primary-color);
  color: white;
  padding: 1rem 2.5rem;
  border-radius: 2px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.9rem;
  border: 2px solid var(--primary-color);
  display: inline-block;
  margin: 0.5rem;
  transition: all 0.3s ease;
}

.btn-primary-custom:hover {
  background: transparent;
  color: var(--primary-color);
}

.btn-outline-custom {
  background: transparent;
  color: var(--primary-color);
  padding: 1rem 2.5rem;
  border-radius: 2px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.9rem;
  border: 2px solid var(--primary-color);
  display: inline-block;
  margin: 0.5rem;
  transition: all 0.3s ease;
}

.btn-outline-custom:hover {
  background: var(--primary-color);
  color: white;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }
}

/* ==========================================================================
   Projects Section & Grid
   ========================================================================== */

.projects-section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2.5rem;
  position: relative;
  padding-bottom: 1rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--accent-color);
}

/* Modern Button-Style Filters */
.project-filter-buttons {
  margin-bottom: 3rem;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--secondary-color);
  background: white;
  border: 2px solid var(--border-color);
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.filter-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: var(--accent-color);
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease;
  z-index: 0;
  opacity: 0.1;
}

.filter-btn:hover::before {
  width: 200px;
  height: 200px;
}

.filter-btn-text {
  position: relative;
  z-index: 1;
}

.filter-btn:hover {
  color: var(--accent-color);
  border-color: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.filter-btn:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

.filter-btn.active {
  color: white;
  background: var(--accent-color);
  border-color: var(--accent-color);
  box-shadow: 0 4px 12px rgba(16, 2, 23, 0.2);
}

.filter-btn.active::before {
  display: none;
}

/* Gallery-Style Project Grid */
.project-gallery-item {
  margin-bottom: 0;
}

.project-gallery-card {
  height: 100%;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
}

.project-gallery-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.project-gallery-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.project-gallery-image {
  position: relative;
  padding-top: 75%; /* 4:3 aspect ratio */
  overflow: hidden;
  background: var(--light-bg);
}

.project-gallery-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.project-gallery-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--light-bg);
  color: var(--border-color);
  font-size: 3rem;
}

.project-gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.4s ease;
}

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

.project-gallery-overlay-content {
  width: 100%;
}

.project-gallery-title {
  color: white;
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  line-height: 1.3;
}

.project-gallery-category {
  display: inline-block;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.75rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  backdrop-filter: blur(10px);
}

/* No Projects Message */
.no-projects-message {
  color: var(--secondary-color);
}

.no-projects-message i {
  opacity: 0.5;
}

/* Category Tabs */
.category-tabs {
  margin-bottom: 3rem;
}

.nav-tabs {
  border-bottom: 2px solid var(--border-color);
  justify-content: center;
}

.nav-tabs .nav-link {
  border: none;
  color: var(--secondary-color);
  padding: 1rem 1.5rem;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.3s ease;
}

.nav-tabs .nav-link:hover,
.nav-tabs .nav-link.active {
  color: var(--accent-color);
  border-bottom-color: var(--accent-color);
  background: none;
}

/* Project Cards */
.project-card {
  margin-bottom: 2rem;
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
}

.project-card-inner {
  height: 100%;
  border: none;
  overflow: hidden;
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
  transition: box-shadow 0.3s ease;
}

.project-card:hover .project-card-inner {
  box-shadow: 0 5px 30px rgba(0,0,0,0.15);
}

.project-card-image {
  position: relative;
  overflow: hidden;
  padding-top: 75%; /* 4:3 aspect ratio */
  background: var(--light-bg);
}

.project-card-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.project-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 102, 204, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.project-card-overlay span {
  color: white;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.9rem;
}

.project-card-body {
  padding: 1.5rem;
}

.project-category-badge {
  display: inline-block;
  background: var(--light-bg);
  color: var(--accent-color);
  padding: 0.25rem 0.75rem;
  border-radius: 2px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

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

.project-card-excerpt {
  color: var(--secondary-color);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Loading State */
.projects-loading {
  text-align: center;
  padding: 3rem 0;
  display: none;
}

.projects-loading.active {
  display: block;
}

/* ==========================================================================
   Single Project Page
   ========================================================================== */

.single-project-hero {
  position: relative;
  height: 60vh;
  min-height: 400px;
  overflow: hidden;
  background: var(--primary-color);
  margin-bottom: 3rem;
}

.single-project-hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
}

.single-project-hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: flex-end;
  padding: 3rem 0;
  color: white;
}

.single-project-title {
  font-size: 3rem;
  color: white;
  text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

.project-content-wrapper {
  padding: 3rem 0;
}

.project-meta-sidebar {
  background: var(--light-bg);
  padding: 2rem;
  border-radius: 4px;
}

.project-meta-sidebar h3 {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.project-meta-item {
  margin-bottom: 1.5rem;
}

.project-meta-label {
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--secondary-color);
  margin-bottom: 0.25rem;
}

.project-meta-value {
  color: var(--primary-color);
  font-size: 0.95rem;
}

.project-content h2 {
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
}

.project-content h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.project-content p {
  margin-bottom: 1.5rem;
}

/* WordPress Gallery Styling */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border-radius: 4px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90vh;
  position: relative;
}

.lightbox-image {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.lightbox-close:hover {
  background: var(--accent-color);
  color: white;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.lightbox-nav:hover {
  background: white;
}

.lightbox-prev {
  left: 2rem;
}

.lightbox-next {
  right: 2rem;
}

/* ==========================================================================
   About & Contact Pages
   ========================================================================== */

.page-header {
  padding: 5rem 0 3rem;
  text-align: center;
  background: var(--light-bg);
  margin-bottom: 3rem;
}

.page-title {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.page-content {
  padding: 3rem 0;
  max-width: 800px;
  margin: 0 auto;
}

/* Profile Section */
.profile-section {
  position: relative;
  overflow: hidden;
}

.profile-photo-wrapper {
  position: relative;
}

.profile-photo {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-photo:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

.profile-content {
  padding: 0;
}

.profile-name {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.profile-bio {
  color: var(--secondary-color);
  font-size: 1.125rem;
  line-height: 1.8;
}

.profile-academics {
  border-left: 3px solid var(--accent-color);
  padding-left: 1.5rem;
  background: rgba(16, 2, 23, 0.02);
  padding: 1.5rem;
  border-radius: 4px;
}

.profile-academics h3 {
  color: var(--accent-color);
  font-size: 0.875rem;
  font-weight: 700;
}

.letter-spacing-wide {
  letter-spacing: 0.1em;
}

.academics-content p {
  margin-bottom: 0.75rem;
  color: var(--primary-color);
  line-height: 1.8;
}

.academics-content p:last-child {
  margin-bottom: 0;
}

.profile-cta {
  margin-top: 2rem;
}

@media (max-width: 991px) {
  .profile-name {
    font-size: 2rem;
    margin-top: 2rem;
  }
  
  .profile-photo-wrapper {
    text-align: center;
  }
  
  .profile-photo {
    max-width: 400px;
    margin: 0 auto;
  }
}

.contact-info {
  background: var(--light-bg);
  padding: 2rem;
  border-radius: 4px;
  margin-top: 2rem;
}

.contact-info h3 {
  margin-bottom: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.contact-item i {
  width: 30px;
  color: var(--accent-color);
}

/* ==========================================================================
   Home Gallery Section
   ========================================================================== */

.home-gallery-section {
  background: var(--light-bg);
}

/* Underline-Style Tabs (Different from Projects) */
.gallery-tabs-wrapper {
  display: flex;
  justify-content: center;
}

.gallery-tabs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  justify-content: center;
  border-bottom: 2px solid var(--border-color);
}

.gallery-tabs li {
  margin: 0;
  padding: 0;
}

.gallery-tab {
  background: none;
  border: none;
  color: var(--secondary-color);
  font-size: 0.95rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 1rem 0;
  cursor: pointer;
  position: relative;
  transition: color 0.3s ease;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
}

.gallery-tab::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--accent-color);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-tab:hover {
  color: var(--primary-color);
}

.gallery-tab:hover::after {
  width: 100%;
}

.gallery-tab.active {
  color: var(--accent-color);
  font-weight: 600;
}

.gallery-tab.active::after {
  width: 100%;
}

.gallery-tab:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 4px;
}

/* Gallery Grid Items */
.gallery-item {
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.gallery-item-inner {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 1 / 1;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.gallery-item-inner:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  transform: translateY(-3px);
}

.gallery-item-link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  text-decoration: none;
}

.gallery-item-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item-inner:hover .gallery-item-image {
  transform: scale(1.05);
}

.gallery-item-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
  padding: 1.5rem 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item-inner:hover .gallery-item-overlay {
  opacity: 1;
}

.gallery-item-title {
  color: white;
  font-size: 0.875rem;
  font-weight: 500;
  display: block;
}

/* Home Gallery Lightbox (Separate from main lightbox) */
.home-gallery-lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.home-gallery-lightbox.active {
  display: flex;
  opacity: 1;
}

.home-gallery-lightbox .lightbox-content {
  max-width: 90%;
  max-height: 90vh;
  position: relative;
  text-align: center;
}

.home-gallery-lightbox .lightbox-image {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.home-gallery-lightbox .lightbox-title {
  color: white;
  font-size: 1rem;
  margin-top: 1rem;
  text-align: center;
}

.home-gallery-lightbox .lightbox-close,
.home-gallery-lightbox .lightbox-prev,
.home-gallery-lightbox .lightbox-next {
  position: absolute;
  background: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10001;
}

.home-gallery-lightbox .lightbox-close {
  top: 2rem;
  right: 2rem;
}

.home-gallery-lightbox .lightbox-prev {
  top: 50%;
  left: 2rem;
  transform: translateY(-50%);
}

.home-gallery-lightbox .lightbox-next {
  top: 50%;
  right: 2rem;
  transform: translateY(-50%);
}

.home-gallery-lightbox .lightbox-close:hover,
.home-gallery-lightbox .lightbox-prev:hover,
.home-gallery-lightbox .lightbox-next:hover {
  background: var(--accent-color);
  color: white;
  transform: translateY(-50%) scale(1.1);
}

.home-gallery-lightbox .lightbox-close:hover {
  transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
  .gallery-tabs {
    gap: 1.5rem;
  }

  .gallery-tab {
    font-size: 0.85rem;
    padding: 0.75rem 0;
  }

  .home-gallery-lightbox .lightbox-prev,
  .home-gallery-lightbox .lightbox-next {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .home-gallery-lightbox .lightbox-prev {
    left: 1rem;
  }

  .home-gallery-lightbox .lightbox-next {
    right: 1rem;
  }

  .home-gallery-lightbox .lightbox-close {
    top: 1rem;
    right: 1rem;
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--primary-color);
  color: white;
  padding: 3rem 0 1rem;
  margin-top: 5rem;
}

.footer-content {
  margin-bottom: 2rem;
}

.footer-about h3 {
  color: white;
  margin-bottom: 1rem;
}

.footer-about p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
}

.footer-links h3,
.footer-social h3 {
  color: white;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: white;
}

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

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: var(--accent-color);
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

/* ==========================================================================
   Utilities & Responsive
   ========================================================================== */

.section-spacing {
  padding: 5rem 0;
}

@media (max-width: 768px) {
  .section-spacing {
    padding: 3rem 0;
  }

  .single-project-title {
    font-size: 2rem;
  }

  .page-title {
    font-size: 2rem;
  }

  .lightbox-nav {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .lightbox-prev {
    left: 1rem;
  }

  .lightbox-next {
    right: 1rem;
  }

  .lightbox-close {
    top: 1rem;
    right: 1rem;
  }
}

/* Accessibility */
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  word-wrap: normal !important;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--accent-color);
  color: white;
  padding: 0.5rem 1rem;
  text-decoration: none;
  z-index: 100000;
}

.skip-link:focus {
  top: 0;
}

/* Print styles */
@media print {
  .site-header,
  .site-footer,
  .category-tabs,
  .lightbox {
    display: none;
  }
}
