:root {
  --primary-color: #2a2323;
  --secondary-color: #a73a3a;
  --text-color: #333;
  --background-color: #f5f5f5;
  --card-background: #4a3c3c;
  --card-text-color: #ffffff;
  --transition-speed: 0.3s;
}

body.dark-mode {
  --text-color: #f5f5f5;
  --background-color: #121212;
  --card-background: #2a2a2a;
  --card-text-color: #f5f5f5;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* html element with no special scrolling behavior */

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  overflow-x: hidden;
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.5);
}

.container {
  width: 100%;
  position: relative;
}

/* Header Styles */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem;
  width: 100%;
  position: relative;
  z-index: 10;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 900;
}

.toggle-container {
  width: 60px;
  height: 30px;
  background-color: #333;
  border-radius: 30px;
  display: flex;
  align-items: center;
  padding: 0 5px;
  cursor: pointer;
}

.toggle-switch {
  width: 20px;
  height: 20px;
  background-color: white;
  border-radius: 50%;
  transition: transform var(--transition-speed);
}

.connect-btn a {
  display: flex;
  align-items: center;
  background-color: #222;
  color: white;
  text-decoration: none;
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  font-size: 0.9rem;
  transition: background-color var(--transition-speed);
}

.connect-btn a:hover {
  background-color: #444;
}

.arrow {
  margin-right: 5px;
}

/* Section Styles */
.section {
  width: 100%;
  padding: 0 2rem 2rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 0.8s forwards;
}

#projects {
  padding-top: 100px;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero Section */
.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 0;
  max-width: 1500px;
  margin: 0 auto;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

h1 {
  font-family: 'Playfair Display', serif;
  font-size: 5rem;
  font-weight: 900;
  line-height: 1.1;
  max-width: 800px;
}

.hero-description {
  font-size: 1.2rem;
  max-width: 500px;
  align-self: flex-end;
}

.company-name {
  color: var(--secondary-color);
}

/* Process Line */
.process-line {
  font-size: 1rem;
  padding: 2rem 0;
  white-space: nowrap;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: row;
  justify-content: center;
}

.process-line-inner {
  max-width: 1600px;
}

@keyframes scroll-text {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-100%);
  }
}

/* Services Section */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  max-width: 1500px;
  margin: 0 auto;
}

.service-card {
  background-color: var(--card-background);
  color: var(--card-text-color);
  padding: 2rem;
  border-radius: 8px;
  transition: transform var(--transition-speed), box-shadow var(--transition-speed), opacity 0.5s;
  opacity: 0;
  transform: translateY(20px);
}

.service-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.service-card h2 {
  font-family: 'Playfair Display', serif;
  margin-bottom: 1rem;
  font-size: 2rem;
}

.service-card p {
  font-size: 0.9rem;
  line-height: 1.8;
}

/* Projects Section */
.projects-container {
  max-width: 1500px;
  margin: 0 auto;
  padding: 3rem 0;
}

.projects-container h1 {
  text-align: center;
  margin-bottom: 3rem;
}

.project {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 4rem;
}

.project-info h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.project-description {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.project-description p {
  line-height: 1.8;
}

.project-image {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.image-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 8px;
}

.nav-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  padding: 1rem;
  color: white;
  font-size: 0.8rem;
  z-index: 2;
}

.nav-bar .right {
  margin-left: auto;
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7);
  transition: transform 0.5s ease, filter 0.5s ease;
}

.overlay {
  position: absolute;
  bottom: 10%;
  left: 0;
  width: 100%;
  padding: 1rem;
  color: white;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: opacity 0.3s ease;
  opacity: 0.8;
}

.overlay h3 {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  margin-bottom: 1rem;
}

.browse-btn {
  background-color: transparent;
  border: 1px solid white;
  color: white;
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: background-color var(--transition-speed);
}

.browse-btn:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Navigation */
.page-nav {
  position: fixed;
  top: 50%;
  right: 2rem;
  transform: translateY(-50%);
  z-index: 100;
}

.page-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.page-nav a {
  display: block;
  width: 10px;
  height: 10px;
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  transition: background-color var(--transition-speed), transform var(--transition-speed);
}

.page-nav a:hover,
.page-nav a.active {
  background-color: #000;
  transform: scale(1.2);
}

.page-nav a span {
  display: none;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  h1 {
    font-size: 4rem;
  }

  .project {
    grid-template-columns: 1fr;
  }

  #projects {
    padding-top: 100px;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 3rem;
  }

  header {
    padding: 1rem;
  }

  .logo {
    font-size: 1.5rem;
  }

  .hero-description {
    align-self: flex-start;
  }

  .services {
    grid-template-columns: 1fr;
  }

  #projects {
    padding-top: 100px;
  }

  .page-nav {
    right: 1rem;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2.5rem;
  }

  .connect-btn a {
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
  }

  .section {
    padding: 0 1rem 1rem;
  }

  #projects {
    padding-top: 50px;
    /* Reduced padding for mobile */
  }
}