:root {
  /* Light mode variables */
  --bg-primary: #ffffff;
  --bg-secondary: #ffffff;
  --text-primary: #212529;
  --text-secondary: #6c757d;
  --border-color: #dee2e6;
  --card-bg: #ffffff;
  --nav-bg: #ffffff;
  --hero-bg: #ffffff;
  --primary-color: #456faa;
  --secondary-color: #6c757d;
  --background-color: #ffffff;
  --text-color: #333333;
  --card-background: #ffffff;
  --navbar-bg: #ffffff;
  --navbar-text: #1f2937;
  --section-bg: #ffffff;
}

[data-theme="dark"] {
  /* Dark mode variables */
  --bg-primary: #212529;
  --bg-secondary: #343a40;
  --text-primary: #f8f9fa;
  --text-secondary: #adb5bd;
  --border-color: #495057;
  --card-bg: #343a40;
  --nav-bg: #212529;
  --hero-bg: #343a40;
  --primary-color: #456faa;
  --secondary-color: #adb5bd;
  --background-color: #212529;
  --text-color: #f8f9fa;
  --card-background: #343a40;
  --navbar-bg: #111827;
  --navbar-text: #f9fafb;
  --section-bg: #1f2937;
}

body {
  font-family: "Montserrat", sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

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

::-webkit-scrollbar {
  width: 0px;
  background: transparent; /* make scrollbar transparent */
}

/* ANCHOR Section 1 */

#title {
  padding: 1rem 0;
  background-color: transparent;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar {
  border-radius: 10px;
  background-color: var(--nav-bg);
  padding: 1rem 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid var(--border-color);
}

.navbar-brand {
  margin-right: 0;
  padding-left: 1rem;
  color: var(--text-primary) !important;
}

.navbar-brand p {
  font-size: 1.5rem;
  font-weight: 900;
  margin: 0;
  color: var(--text-primary);
}

.nav-item {
  padding: 0 18px;
}

.nav-link {
  color: var(--text-primary) !important;
  font-weight: 400;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--primary-color) !important;
}

.navbar-toggler {
  margin-right: 1rem;
  border-color: var(--border-color);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23212529' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

[data-theme="dark"] .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23f8f9fa' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

#theme-toggle {
  color: var(--text-primary);
  font-size: 1.2rem;
  padding: 0.5rem 1rem 0.5rem 0.5rem;
  margin-right: 1rem;
  transition: color 0.3s ease;
  border: none;
  background: none;
}

#theme-toggle i {
  color: #212529;
  opacity: 1;
}

[data-theme="dark"] #theme-toggle i {
  color: #f8f9fa;
}

#theme-toggle:hover {
  color: var(--text-secondary);
}

#theme-toggle:hover i {
  opacity: 0.8;
}

.container-fluid {
  padding: 2% 5% 2% 10%;
}

.center-block {
  padding-top: 5%;
}

h1 {
  font-family: "Montserrat-Black";
  font-size: 3rem;
  line-height: 1.3;
  color: var(--text-primary);
  padding-right: 0;
}

h3 {
  font-family: "Montserrat-Black", Helvetica;
  font-size: 1.5rem;
}

h2 {
  font-family: "Montserrat", Helvetica;
  font-size: 1.5rem;
  line-height: 1.5;
  /* text-align: center; */
}

p {
  color: #8f8f8f;
}

#table {
  padding: 5% 10% 20%;
}

.apps-table {
  padding: 5% 0 20%;
}

.title-text-container {
  padding-top: 10%;
}

.title-text {
  font-family: "Montserrat";
  padding-right: 0;
  font-size: 1.2rem;
  line-height: 1.3;
  color: #c3ccce;
}

.coming-soon {
  text-align: center;
  padding: 20% 10%;
}

.list-group-item {
  background-color: #013a63;
  color: #e7eff1;
}

/* NOTE Footer Section */

#footer {
  padding: 2rem 0;
  text-align: center;
  background-color: var(--background-color);
}

.social-icon {
  color: var(--text-primary);
  margin: 0 1rem;
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

.social-icon:hover {
  color: var(--primary-color);
}

.copyright-text {
  margin-top: 1rem;
  color: var(--secondary-color);
}

/* Hero Section */
#hero {
  padding: 4rem 0;
  min-height: 80vh;
  display: flex;
  align-items: center;
}

#hero h1 {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

#hero .lead {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: var(--secondary-color);
}

.hero-image-container {
  position: relative;
  padding: 2rem;
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
  border-radius: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
  transition: transform 0.3s ease;
}

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

/* Section Styles */
.section {
  padding: 5rem 0;
  background-color: var(--bg-primary);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
  text-align: center;
  color: var(--text-primary);
}

/* Skills Section */
.skills-container {
  background-color: var(--card-bg);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.skill-tag {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.9rem;
  border: 1px solid var(--border-color);
}

/* Project Cards */
.project-card {
  background-color: var(--card-bg);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  height: 100%;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.project-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.project-icon i {
  font-size: 1.8rem;
  color: white;
}

.project-card h3 {
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-weight: 700;
}

.project-card p {
  color: var(--text-primary);
  opacity: 0.8;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.project-card .btn {
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

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

/* Contact Section */
.contact-info {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.social-link {
  color: var(--text-primary);
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

.social-link:hover {
  color: var(--primary-color);
}

.copyright {
  text-align: center;
  color: var(--text-primary);
  opacity: 0.8;
}

/* Button Styles */
.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  padding: 0.75rem 2rem;
  font-weight: 400;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-outline-primary {
  color: var(--text-primary);
  border-color: var(--border-color);
}

.btn-outline-primary:hover {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
}

/* Responsive Design */
@media (max-width: 768px) {
  #hero {
    text-align: center;
    padding: 2rem 0;
  }

  #hero h1 {
    font-size: 2.5rem;
  }

  .section {
    padding: 3rem 0;
  }

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

  .hero-image-container {
    margin-top: 2rem;
  }

  .container-fluid {
    padding: 2% 5%;
  }

  .navbar-brand {
    padding-left: 0.5rem;
  }

  .project-card {
    padding: 1.5rem;
  }

  .project-icon {
    width: 50px;
    height: 50px;
  }

  .project-icon i {
    font-size: 1.5rem;
  }

  .project-card h3 {
    font-size: 1.3rem;
  }

  .feature-card {
    margin-bottom: 2rem;
  }
}

/* Career Sections */
.career-section {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background-color: var(--card-bg);
  border-radius: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.career-section:last-child {
  margin-bottom: 0;
}

.career-title {
  color: var(--primary-color);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.career-section p {
  color: var(--text-primary);
  opacity: 0.9;
  line-height: 1.6;
  margin-bottom: 0;
}

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

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

#features {
  padding: 4rem 0;
  background-color: var(--card-background);
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  position: relative;
  left: 50%;
  right: 50%;
  transform: translateX(-50%);
}

#features .row {
  padding: 0;
  margin: 0;
  width: 100%;
  display: flex;
  justify-content: flex-start;
}

#features .col-lg-4 {
  padding: 0 1rem;
  flex: 0 0 33.333333%;
  max-width: 33.333333%;
}

#features .col-lg-4:first-child {
  margin-left: -1rem;
}

#features h2 {
  text-align: center;
  margin-bottom: 3rem;
  font-weight: 900;
}

.feature-card {
  background: var(--card-bg);
  border-radius: 15px;
  padding: 2rem;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.card-icon {
  width: 60px;
  height: 60px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.card-icon i {
  font-size: 1.8rem;
  color: white;
}

.card-body h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.card-body p {
  color: var(--text-secondary);
  margin-bottom: 0;
  line-height: 1.6;
}

[data-theme="dark"] .feature-card {
  background: var(--dark-card-bg);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .feature-card:hover {
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

#screenshots {
  padding: 4rem 0;
}

#screenshots h2 {
  text-align: center;
  margin-bottom: 3rem;
  font-weight: 900;
}

#screenshots img {
  transition: transform 0.3s ease;
  max-width: 100%;
  height: auto;
  max-height: 400px; /* Limit maximum height */
  object-fit: contain; /* Maintain aspect ratio */
  margin-bottom: 1rem;
}

#screenshots img:hover {
  transform: scale(1.02);
}

/* Add specific styles for hero image */
#hero img {
  max-width: 100%;
  height: auto;
  max-height: 500px; /* Slightly larger for hero section */
  object-fit: contain;
}

/* Add responsive adjustments */
@media (max-width: 768px) {
  #screenshots img {
    max-height: 300px; /* Smaller on mobile */
  }

  #hero img {
    max-height: 400px; /* Smaller on mobile */
  }
}

#contact {
  padding: 4rem 0;
  background-color: var(--card-background);
}

#contact h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-weight: 900;
}

#app-content {
  padding: 2rem 0;
  color: var(--text-primary);
}

#app-content h1 {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

#app-content .lead {
  font-size: 1.2rem;
  color: var(--secondary-color);
  margin-bottom: 2rem;
}

.app-screenshot {
  margin: 2rem 0;
  text-align: center;
}

.app-screenshot img {
  max-width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.feature-section {
  margin: 3rem 0;
}

.feature-section h2 {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 2rem;
  color: var(--text-primary);
}

.feature-item {
  padding: 1.5rem;
  background-color: var(--card-background);
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  height: 100%;
  transition: transform 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-5px);
}

.feature-item i {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.feature-item h3 {
  font-size: 1.3rem;
  font-weight: 900;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.feature-item p {
  color: var(--secondary-color);
  margin: 0;
  line-height: 1.6;
}

.screenshot-section {
  margin: 3rem 0;
}

.screenshot-section h2 {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 2rem;
  color: var(--text-primary);
}

.screenshot-item {
  margin-bottom: 2rem;
}

.screenshot-item img {
  max-width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 1rem;
}

.screenshot-item p {
  color: var(--secondary-color);
  text-align: center;
  margin: 0;
}

.download-section {
  margin: 3rem 0;
  text-align: center;
  padding: 2rem;
  background-color: var(--card-background);
  border-radius: 10px;
}

.download-section h2 {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.download-section p {
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  #app-content h1 {
    font-size: 2rem;
  }

  .feature-item {
    margin-bottom: 1.5rem;
  }

  .screenshot-item {
    margin-bottom: 1.5rem;
  }
}

.hero-section {
  padding-top: 2rem;
}
