/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

/* CSS Variables for Theme Colors */
:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f8f8f8;
  --text-primary: #000000;
  --text-secondary: #666666;
  --text-tertiary: #999999;
  --border-color: rgba(0, 0, 0, 0.1);
  --shadow-light: rgba(0, 0, 0, 0.05);
  --shadow-medium: rgba(0, 0, 0, 0.1);
  --shadow-heavy: rgba(0, 0, 0, 0.15);
  --overlay-dark: rgba(0, 0, 0, 0.7);
  --overlay-light: rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] {
  --bg-primary: #1a1a1a;
  --bg-secondary: #2d2d2d;
  --text-primary: #ffffff;
  --text-secondary: #cccccc;
  --text-tertiary: #999999;
  --border-color: rgba(255, 255, 255, 0.1);
  --shadow-light: rgba(0, 0, 0, 0.3);
  --shadow-medium: rgba(0, 0, 0, 0.4);
  --shadow-heavy: rgba(0, 0, 0, 0.6);
  --overlay-dark: rgba(0, 0, 0, 0.8);
  --overlay-light: rgba(0, 0, 0, 0.5);
}

/* Update body styles to use variables with smooth transitions */
body {
  font-family: "Arial", sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.5s ease, color 0.5s ease;
}

/* Selection color override */
::selection {
  background-color: #000000;
  color: #ffffff;
}

::-moz-selection {
  background-color: #000000;
  color: #ffffff;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Page Loader - DP Architects Style */
.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-content {
  text-align: center;
}

.loader-logo {
  margin-bottom: 4rem;
}

.loader-title {
  font-size: 4rem;
  font-weight: bold;
  letter-spacing: 0.1em;
  color: #000000;
  margin-bottom: 0.5rem;
}

.loader-subtitle {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: #666666;
  font-weight: 300;
}

.loader-progress-container {
  width: 24rem;
  margin: 0 auto;
}

.loader-progress-bar {
  width: 100%;
  height: 1px;
  background: #e5e5e5;
  position: relative;
  overflow: hidden;
  margin-bottom: 2rem;
}

.loader-progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: #000000;
  width: 0%;
  transition: width 0.3s ease;
}

.loader-text {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: #999999;
  margin-bottom: 1rem;
}

.loader-dots {
  display: flex;
  justify-content: center;
  gap: 0.25rem;
}

.loader-dot {
  width: 4px;
  height: 4px;
  background: #cccccc;
  border-radius: 50%;
  animation: loaderPulse 1s ease-in-out infinite;
}

.loader-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.loader-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes loaderPulse {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 1;
  }
}

/* Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 1px;
  background: #000000;
  z-index: 1001;
  transition: width 0.1s ease;
}

/* Header - DP Architects Style */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.5s ease;
  background: transparent;
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.1);
  transition: background-color 0.5s ease, box-shadow 0.5s ease;
}

[data-theme="dark"] .header.scrolled {
  background: rgba(26, 26, 26, 0.95);
  box-shadow: 0 1px 20px rgba(255, 255, 255, 0.1);
}

.header-container {
  max-width: none;
  padding: 0 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 6rem;
}

/* Logo Styles - Using Original Structure */
.logo {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.logo-icon img {
  height: 80px;
  width: auto;
  transition: transform 0.3s ease, filter 0.5s ease;
  filter: brightness(0) invert(1); /* Makes image white */
}

.header.scrolled .logo-icon img {
  filter: brightness(0) invert(0); /* Makes image black when scrolled */
}

[data-theme="dark"] .header.scrolled .logo-icon img {
  filter: brightness(0) invert(1); /* Makes image white in dark mode */
}

.logo:hover .logo-icon img {
  transform: rotate(45deg);
}

.logo-text {
  display: flex;
  flex-direction: column;
  margin-left: -11px;
}

.logo-main {
  font-size: 1.75rem;
  font-weight: bold;
  letter-spacing: 0.1em;
  color: #ffffff;
  transition: color 0.5s ease;
  line-height: 1;
}

.logo-sub {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.5s ease;
  line-height: 1;
  font-weight: 300;
  margin-top: 2px;
}

.header.scrolled .logo-main {
  color: #000000;
}

.header.scrolled .logo-sub {
  color: rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] .header.scrolled .logo-main {
  color: #ffffff;
}

[data-theme="dark"] .header.scrolled .logo-sub {
  color: rgba(255, 255, 255, 0.8);
}

/* Dark Mode Toggle */
.dark-mode-toggle {
  position: relative;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  width: 2.5rem;
  height: 2.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.5s ease;
  color: #ffffff;
}

.header.scrolled .dark-mode-toggle {
  border-color: rgba(0, 0, 0, 0.3);
  color: var(--text-primary);
}

.dark-mode-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.1);
}

.header.scrolled .dark-mode-toggle:hover {
  background: var(--bg-secondary);
}

.sun-icon,
.moon-icon {
  position: absolute;
  transition: all 0.5s ease;
}

.sun-icon {
  opacity: 1;
  transform: rotate(0deg);
}

.moon-icon {
  opacity: 0;
  transform: rotate(180deg);
}

[data-theme="dark"] .sun-icon {
  opacity: 0;
  transform: rotate(180deg);
}

[data-theme="dark"] .moon-icon {
  opacity: 1;
  transform: rotate(0deg);
}

/* Mobile Menu Toggle - Always Visible */
.mobile-menu-toggle {
  display: flex;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  gap: 0.25rem;
}

.hamburger-line {
  width: 1.5rem;
  height: 1px;
  background: #ffffff;
  transition: all 0.5s ease;
}

.header.scrolled .hamburger-line {
  background: #000000;
}

[data-theme="dark"] .header.scrolled .hamburger-line {
  background: #ffffff;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

.nav-mobile {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(-1rem);
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s ease;
}

[data-theme="dark"] .nav-mobile {
  background: rgba(26, 26, 26, 0.95);
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.1);
}

.nav-mobile.active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.nav-mobile-content {
  padding: 2rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.nav-link-mobile {
  color: #000000;
  text-decoration: none;
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  transition: color 0.5s ease;
  position: relative;
  padding-bottom: 0.25rem;
}

[data-theme="dark"] .nav-link-mobile {
  color: #ffffff;
}

.nav-link-mobile:hover {
  color: #666666;
}

[data-theme="dark"] .nav-link-mobile:hover {
  color: #cccccc;
}

.nav-link-mobile::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: #000000;
  transition: width 0.3s ease;
}

[data-theme="dark"] .nav-link-mobile::after {
  background: #ffffff;
}

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

.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  z-index: 40;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s ease;
}

.mobile-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Hero Section - DP Architects Style */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.hero-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: -1;
}

.hero-content {
  text-align: center;
  color: #ffffff;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 10;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 9rem);
  font-weight: 300;
  letter-spacing: 0.05em;
  line-height: 0.9;
  margin-bottom: 3rem;
  opacity: 0;
  animation: fadeInUp 1s ease 0.5s forwards;
}

.hero-divider {
  width: 6rem;
  height: 1px;
  background: #ffffff;
  margin: 0 auto 3rem auto;
  opacity: 0;
  animation: fadeInUp 1s ease 0.7s forwards;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 300;
  letter-spacing: 0.2em;
  margin-bottom: 4rem;
  opacity: 0;
  animation: fadeInUp 1s ease 0.9s forwards;
}

.hero-button-container {
  opacity: 0;
  animation: fadeInUp 1s ease 1.1s forwards;
}

.hero-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 3rem;
  background: transparent;
  border: 1px solid #ffffff;
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.5s ease;
}

.button-text {
  position: relative;
  z-index: 2;
  transition: color 0.5s ease;
}

.button-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
  transform: translateX(-100%);
  transition: transform 0.5s ease;
  z-index: 1;
}

.hero-button:hover .button-bg {
  transform: translateX(0);
}

.hero-button:hover .button-text {
  color: #000000;
}

/* Sections */
section {
  padding: 8rem 0;
  transition: background-color 0.5s ease;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  margin-bottom: 1rem;
  transition: color 0.5s ease;
}

.section-divider {
  width: 6rem;
  height: 1px;
  background: var(--text-primary);
  margin: 0 auto;
  transition: background-color 0.5s ease;
}

/* About Us Section - Updated with Team Carousel */
.about {
  background: var(--bg-primary);
  transition: background-color 0.5s ease;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: flex-start;
  margin-top: 4rem;
}

.about-text {
  max-width: 600px;
}

.about-intro {
  margin-bottom: 2rem;
}

.about-lead {
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1.4;
  color: var(--text-primary);
  margin-bottom: 0;
  letter-spacing: 0.02em;
  transition: color 0.5s ease;
}

.about-description p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-weight: 300;
  transition: color 0.5s ease;
}

.about-description p:last-child {
  margin-bottom: 0;
}

/* Team Carousel Styles */
.team-carousel-container {
  position: relative;
}

.team-title {
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  margin-bottom: 2rem;
  text-align: center;
  transition: color 0.5s ease;
}

.team-carousel {
  position: relative;
  margin-bottom: 2rem;
}

.team-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: #000000;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.5s ease;
  z-index: 10;
  backdrop-filter: blur(5px);
}

[data-theme="dark"] .team-arrow {
  background: rgba(26, 26, 26, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.team-arrow:hover {
  background: rgba(0, 0, 0, 0.9);
  color: #ffffff;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .team-arrow:hover {
  background: rgba(255, 255, 255, 0.9);
  color: #000000;
}

.team-arrow-left {
  left: -1.5rem;
}

.team-arrow-right {
  right: -1.5rem;
}

.team-members {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
}

.team-member {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.team-member.active {
  opacity: 1;
  visibility: visible;
}

.team-image {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.team-image:hover {
  transform: scale(1.02);
}

.team-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
}

.team-image:hover .team-photo {
  transform: scale(1.05);
}

.team-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  padding: 3rem 1.5rem 1.5rem;
  color: #ffffff;
  transform: translateY(100%);
  transition: transform 0.5s ease;
}

.team-image:hover .team-overlay {
  transform: translateY(0);
}

.team-name {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.team-position {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.team-description {
  font-size: 0.875rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 300;
}

.team-indicators {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 3rem;
}

.team-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--border-color);
  cursor: pointer;
  transition: all 0.5s ease;
}

.team-indicator.active {
  background-color: var(--text-primary);
  transform: scale(1.2);
}

/* Mission & Vision Section */
.mission-vision {
  background: var(--bg-secondary);
  transition: background-color 0.5s ease;
}

.mission-vision-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  margin-bottom: 6rem;
}

.mv-header {
  margin-bottom: 2rem;
}

.mv-title {
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  margin-bottom: 1rem;
  transition: color 0.5s ease;
}

.mv-divider {
  width: 4rem;
  height: 1px;
  background: var(--text-primary);
  transition: background-color 0.5s ease;
}

.mv-text p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-weight: 300;
  transition: color 0.5s ease;
}

.mv-text p:last-child {
  margin-bottom: 0;
}

.core-values {
  text-align: center;
}

.values-title {
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  margin-bottom: 3rem;
  transition: color 0.5s ease;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
}

.value-item {
  text-align: center;
  padding: 2rem;
  background: var(--bg-primary);
  transition: all 0.5s ease;
  box-shadow: 0 2px 10px var(--shadow-light);
}

.value-item:hover {
  transform: translateY(-0.5rem);
  box-shadow: 0 8px 30px var(--shadow-medium);
}

.value-icon {
  width: 4rem;
  height: 4rem;
  background: #f5f5f5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  transition: all 0.5s ease;
  color: #666666;
}

[data-theme="dark"] .value-icon {
  background: #333333;
  color: #cccccc;
}

.value-item:hover .value-icon {
  background: #000000;
  color: #ffffff;
  transform: scale(1.1);
}

[data-theme="dark"] .value-item:hover .value-icon {
  background: #ffffff;
  color: #000000;
}

.value-name {
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  margin-bottom: 1rem;
  transition: color 0.5s ease;
}

.value-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
  font-weight: 300;
  transition: color 0.5s ease;
}

/* Projects Section */
.projects {
  background: var(--bg-secondary);
  transition: background-color 0.5s ease;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 3rem;
  margin-top: 4rem;
}

.project-card {
  background: var(--bg-primary);
  overflow: hidden;
  transition: all 0.5s ease;
  cursor: pointer;
  box-shadow: 0 4px 20px var(--shadow-medium);
}

.project-card:hover {
  transform: translateY(-0.5rem);
  box-shadow: 0 8px 40px var(--shadow-heavy);
}

.project-image {
  position: relative;
  overflow: hidden;
  height: 16rem;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

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

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

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

.project-overlay-content {
  text-align: center;
  color: #ffffff;
}

.project-icon {
  margin-bottom: 0.5rem;
}

.project-view-text {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.project-info {
  padding: 2rem;
}

.project-title {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
  transition: color 0.5s ease;
}

.project-description {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.95rem;
  font-weight: 300;
  transition: color 0.5s ease;
}

/* Gallery Section */
.gallery {
  background: var(--bg-primary);
  transition: background-color 0.5s ease;
}

.gallery-nav {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-bottom: 4rem;
  flex-wrap: wrap;
}

.gallery-nav-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  cursor: pointer;
  padding: 0.5rem 0;
  position: relative;
  transition: all 0.5s ease;
}

.gallery-nav-btn::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--text-primary);
  transition: width 0.3s ease, background-color 0.5s ease;
}

.gallery-nav-btn:hover,
.gallery-nav-btn.active {
  color: var(--text-primary);
  transform: translateY(-2px);
}

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

.gallery-content {
  position: relative;
  min-height: 500px;
}

.gallery-category {
  display: none;
  width: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.gallery-category.active {
  display: block;
  opacity: 1;
}

.gallery-carousel {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: #000000;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.5s ease;
  z-index: 10;
  backdrop-filter: blur(5px);
}

[data-theme="dark"] .gallery-arrow {
  background: rgba(26, 26, 26, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.gallery-arrow:hover {
  background: rgba(0, 0, 0, 0.9);
  color: #ffffff;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .gallery-arrow:hover {
  background: rgba(255, 255, 255, 0.9);
  color: #000000;
}

.gallery-arrow-left {
  left: -1.5rem;
}

.gallery-arrow-right {
  right: -1.5rem;
}

.gallery-projects {
  position: relative;
  width: 100%;
  height: 450px;
  overflow: hidden;
}

.gallery-project {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.gallery-project.active {
  opacity: 1;
  visibility: visible;
}

.gallery-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1rem;
  width: 100%;
  height: 100%;
}

.gallery-main-image {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease;
  width: 100%;
  height: 100%;
  min-height: 450px;
  max-height: 450px;
  background-color: #f5f5f5;
}

[data-theme="dark"] .gallery-main-image {
  background-color: #333333;
}

.gallery-main-image:hover {
  transform: scale(1.02);
}

.gallery-main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
  display: block;
}

.gallery-main-image:hover img {
  transform: scale(1.05);
}

.gallery-side-images {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  height: 100%;
  min-height: 450px;
  max-height: 450px;
}

.gallery-side-image {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease;
  flex: 1;
  width: 100%;
  min-height: 217px;
  max-height: 217px;
  background-color: #f5f5f5;
}

[data-theme="dark"] .gallery-side-image {
  background-color: #333333;
}

.gallery-side-image:hover {
  transform: scale(1.02);
}

.gallery-side-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
  display: block;
}

.gallery-side-image:hover img {
  transform: scale(1.05);
}

.gallery-project-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  padding: 3rem 1.5rem 1.5rem;
  color: #ffffff;
  transition: all 0.3s ease;
}

.gallery-project-title {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: #ffffff;
  line-height: 1.2;
}

.gallery-project-description {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s ease;
  transform: translateY(10px);
}

.gallery-project-description p {
  font-size: 0.875rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 300;
  margin: 0;
  text-align: left;
}

.gallery-main-image:hover .gallery-project-description {
  opacity: 1;
  max-height: 200px;
  transform: translateY(0);
}

.gallery-indicators {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.gallery-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: all 0.5s ease;
}

[data-theme="dark"] .gallery-indicator {
  background-color: rgba(255, 255, 255, 0.3);
}

.gallery-indicator.active {
  background-color: #000000;
  transform: scale(1.2);
}

[data-theme="dark"] .gallery-indicator.active {
  background-color: #ffffff;
}

.gallery-image {
  cursor: pointer;
}

/* Contact Section */
.contact {
  background: var(--bg-secondary);
  transition: background-color 0.5s ease;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-form-container {
  background: var(--bg-primary);
  padding: 3rem;
  box-shadow: 0 4px 20px var(--shadow-medium);
  transition: all 0.5s ease;
}

.contact-form-container:hover {
  box-shadow: 0 8px 30px var(--shadow-heavy);
}

.contact-form-title {
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  margin-bottom: 2rem;
  text-align: center;
  transition: color 0.5s ease;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  transition: color 0.5s ease;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 1rem;
  border: 1px solid var(--border-color);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.5s ease;
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--text-primary);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .form-group input:focus,
[data-theme="dark"] .form-group select:focus,
[data-theme="dark"] .form-group textarea:focus {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
}

.form-group textarea {
  min-height: 120px;
}

.contact-submit-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 3rem;
  background: transparent;
  border: 1px solid var(--text-primary);
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.5s ease;
  margin-top: 1rem;
}

.contact-submit-btn:hover {
  background: var(--text-primary);
  color: var(--bg-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .contact-submit-btn:hover {
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.contact-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-text,
.btn-loading {
  transition: opacity 0.3s ease;
}

.form-messages {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.form-messages.show {
  opacity: 1;
  transform: translateY(0);
}

.form-messages.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-messages.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem;
  background: var(--bg-primary);
  transition: all 0.5s ease;
  box-shadow: 0 2px 10px var(--shadow-light);
}

.contact-item:hover {
  transform: translateX(0.5rem);
  box-shadow: 0 4px 20px var(--shadow-medium);
}

.contact-icon {
  width: 3rem;
  height: 3rem;
  background: #f5f5f5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.5s ease;
}

[data-theme="dark"] .contact-icon {
  background: #333333;
}

.contact-item:hover .contact-icon {
  background: #000000;
  color: #ffffff;
  transform: scale(1.1);
}

[data-theme="dark"] .contact-item:hover .contact-icon {
  background: #ffffff;
  color: #000000;
}

.contact-info {
  flex: 1;
}

.contact-label {
  color: var(--text-tertiary);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  transition: color 0.5s ease;
}

.contact-value {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.5s ease;
  font-size: 1rem;
  font-weight: 500;
}

.contact-value:hover {
  color: var(--text-secondary);
}

/* Footer */
.footer {
  background: #000000;
  padding: 2rem 0;
  text-align: center;
  transition: background-color 0.5s ease;
}

[data-theme="dark"] .footer {
  background: #000000;
}

.footer-text {
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 300;
  letter-spacing: 0.05em;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 3rem;
  height: 3rem;
  background: #000000;
  color: #ffffff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(1rem);
  transition: all 0.5s ease;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .back-to-top {
  background: #ffffff;
  color: #000000;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: #333333;
  transform: translateY(-0.25rem);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .back-to-top:hover {
  background: #cccccc;
  box-shadow: 0 6px 25px rgba(255, 255, 255, 0.4);
}

/* Image Modal */
.image-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(5px);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: background-color 0.5s ease;
}

.image-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-modal-content {
  position: relative;
  max-width: 95%;
  max-height: 95%;
  animation: modalZoomIn 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-modal-content img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 95vh;
  object-fit: contain;
  cursor: default;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.image-modal-close {
  position: fixed;
  top: 2rem;
  right: 2.5rem;
  color: #ffffff;
  font-size: 3rem;
  font-weight: bold;
  cursor: pointer;
  z-index: 2001;
  transition: all 0.5s ease;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  width: 3.75rem;
  height: 3.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.image-modal-close:hover {
  color: #ffffff;
  background: rgba(0, 0, 0, 0.8);
  transform: scale(1.1);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes modalZoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .header-container {
    padding: 0 2rem;
  }

  .nav-mobile-content {
    padding: 2rem;
  }

  .projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
  }

  .gallery-nav {
    gap: 1.5rem;
  }

  .gallery-arrow-left {
    left: -1rem;
  }

  .gallery-arrow-right {
    right: -1rem;
  }

  .about-content,
  .mission-vision-content {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .team-arrow-left {
    left: -1rem;
  }

  .team-arrow-right {
    right: -1rem;
  }

  .values-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }

  .header-container {
    padding: 0 1rem;
    height: 5rem;
  }

  .logo-icon img {
    height: 60px;
  }

  .logo-main {
    font-size: 1.5rem;
  }

  .logo-sub {
    font-size: 0.55rem;
  }

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

  .loader-progress-container {
    width: 20rem;
  }

  .hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
  }

  .section-title {
    font-size: clamp(2rem, 4vw, 3rem);
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .gallery-nav {
    gap: 1rem;
    flex-wrap: wrap;
  }

  .gallery-nav-btn {
    font-size: 0.8rem;
  }

  .gallery-projects {
    height: 380px;
    min-height: 380px;
    max-height: 380px;
  }

  .gallery-layout {
    grid-template-columns: 1fr;
    gap: 1rem;
    height: 100%;
  }

  .gallery-main-image {
    height: 250px;
    min-height: 250px;
    max-height: 250px;
  }

  .gallery-side-images {
    flex-direction: row;
    height: 120px;
    min-height: 120px;
    max-height: 120px;
  }

  .gallery-side-image {
    height: 100%;
    min-height: 120px;
    max-height: 120px;
  }

  .gallery-arrow {
    width: 2.5rem;
    height: 2.5rem;
  }

  .gallery-arrow-left {
    left: -0.75rem;
  }

  .gallery-arrow-right {
    right: -0.75rem;
  }

  .team-arrow {
    width: 2.5rem;
    height: 2.5rem;
  }

  .team-arrow-left {
    left: -0.75rem;
  }

  .team-arrow-right {
    right: -0.75rem;
  }

  .team-members {
    height: 300px;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .contact-form-container {
    padding: 2rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-submit-btn {
    padding: 0.875rem 2rem;
  }

  .contact-methods {
    gap: 1rem;
  }

  .contact-item {
    padding: 1.5rem;
    gap: 1rem;
  }

  section {
    padding: 4rem 0;
  }

  .about-content,
  .mission-vision-content {
    gap: 3rem;
  }

  .about-lead {
    font-size: 1.25rem;
  }

  .mv-title {
    font-size: 1.5rem;
  }

  .values-title {
    font-size: 1.5rem;
  }

  .values-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .value-item {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .logo-icon img {
    height: 50px;
  }

  .logo-main {
    font-size: 1.25rem;
  }

  .logo-sub {
    font-size: 0.5rem;
  }

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

  .loader-progress-container {
    width: 16rem;
  }

  .hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }

  .hero-button {
    padding: 0.75rem 2rem;
    font-size: 0.8rem;
  }

  .gallery-projects {
    height: 320px;
    min-height: 320px;
    max-height: 320px;
  }

  .gallery-main-image {
    height: 200px;
    min-height: 200px;
    max-height: 200px;
  }

  .gallery-side-images {
    flex-direction: column;
    height: 110px;
    min-height: 110px;
    max-height: 110px;
  }

  .gallery-side-image {
    min-height: 50px;
    max-height: 50px;
  }

  .team-members {
    height: 250px;
  }

  .contact-form-container {
    padding: 1.5rem;
  }

  .contact-form-title {
    font-size: 1.25rem;
  }

  .image-modal-close {
    top: 1rem;
    right: 1rem;
    font-size: 2.5rem;
    width: 3rem;
    height: 3rem;
  }

  .about-lead {
    font-size: 1.125rem;
  }

  .mv-title {
    font-size: 1.25rem;
  }

  .values-title {
    font-size: 1.25rem;
  }
}
