:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary: #592fb2;
  --dark: #1e293b;
  --light: #f8fafc;
  --gray: #64748b;
  --light-gray: #e2e8f0;

  /* Theme variables */
  --bg-color: #0f172a;
  --text-color: #e2e8f0;
  --card-bg: #1e293b;
  --header-bg: linear-gradient(135deg, var(--primary) 50%, var(--secondary) 100%);
  --footer-bg: #0f172a;
  --footer-text: #e2e8f0;
  --section-alt-bg: transparent;
  --shadow-color: rgba(0, 0, 0, 0.3);
  --contact-bg: #1e293b;  
  --project-title-color: var(--text-color);
  --contact-link-color: var(--text-color);
  --section-title-color: var(--text-color);
  --section-title-underline: var(--primary);

  /* Additional variables for dark mode */
  --primary-color: #3b82f6;
  --secondary-color: #6366f1;
  --text-secondary: #94a3b8;
}

/* Remove the [data-theme="dark"] block since we're using dark mode by default */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Navigation */
header {
  background: var(--header-bg);
  color: white;
  padding: 1.5rem 0;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 6px var(--shadow-color);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo h1 {
  font-size: 1.8rem;
  margin-bottom: 0.2rem;
}

.logo p {
  font-size: 1rem;
  opacity: 0.9;
}

nav {
  display: flex;
  gap: 1.5rem;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 0.5rem 0;
  position: relative;
}

nav a:after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: white;
  transition: width 0.3s ease;
}

nav a:hover:after {
  width: 100%;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

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

section:nth-child(even) {
  background-color: var(--section-alt-bg);
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section-title h2 {
  font-size: 2.2rem;
  color: var(--section-title-color);
  display: inline-block;
  transition: color 0.3s ease;
}

.section-title h2:after {
  content: '';
  position: absolute;
  width: 60px;
  height: 3px;
  background: var(--section-title-underline);
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  transition: background 0.3s ease;
}

/* About Section */
#about {
  text-align: center;
  background-color: transparent;
}

#about p {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
  color: var(--gray);
  transition: color 0.3s ease;
}
.profile-photo {
  padding: auto;
  margin: auto;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
}

/* Projects Section */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 2rem;
}

.project-card {
  background: var(--card-bg);
  border-radius: 10px;
  overflow: hidden;
  padding: 10px;
  box-shadow: 0 4px 6px var(--shadow-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px var(--shadow-color);
}

.project-header {
  align-content: center;
  padding: 2rem 1rem;
  background: transparent;
  color: white;
}

.project-hero {
  background: var(--header-bg);
  color: white;
  padding: 4rem 1rem;
  text-align: center;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 4px 8px var(--shadow-color);
}

.project-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.project-actions {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.project-info-card {
  background: var(--card-bg);
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 8px var(--shadow-color);
  margin-top: 2rem;
}

.project-info-card .info-item {
  margin-bottom: 0.8rem;
  display: flex;
  justify-content: space-between;
}

.info-label {
  font-weight: 600;
  margin-right: 0.5rem;
}

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

.project-mockup {
  margin: 0;
  padding: 1rem 0 2rem 0;
  background: transparent;
}

.mockup-box {
  background: var(--card-bg);
  padding: 1rem;
  margin: 0 auto 2rem auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px var(--shadow-color);
  max-width: 1000px;
}

.mockup-box img {
  width: 100%;
  border-radius: 8px;
}

/* Project Hero */
.project-hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  padding: 3rem 0;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

/* Main Content Layout */
.main-content {
  display: flex;
  gap: 2rem;
  margin: 2rem auto;
  padding: 0 1rem;
}

.project-content {
  flex: 1;
}

.project-sidebar {
  width: 300px;
}

/* Project Sections */
.project-section {
  
  padding: 4rem 4rem;
  background: var(--section-alt-bg);
  border-radius: 12px;
  margin: 2rem 2rem;
}

.project-section h2 {
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
  color: var(--section-title-color);
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--card-bg);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  text-align: center;
}

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

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

.feature-card h3 {
  margin: 1rem 0;
  font-size: 1.1rem;
  color: var(--project-title-color);
}

/* Technology Stack */
.tech-stack {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.tech-item {
  display: flex;
  justify-content: space-between;
  padding: 0.8rem;
  background: var(--card-bg);
  border-radius: 5px;
  transition: all 0.3s ease;
}

.tech-name {
  font-weight: bold;
}

.tech-purpose {
  color: var(--text-secondary);
}

/* Code Block */
.code-block {
  background: #2d2d2d;
  color: #f8f8f2;
  padding: 1rem;
  border-radius: 5px;
  overflow-x: auto;
  margin: 1rem 0;
}

.code-block pre {
  margin: 0;
}

.code-block code {
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  line-height: 1.5;
}

code {
  font-family: 'Courier New', monospace;
}

/* Lists */
.usage-steps {
  padding-left: 1.5rem;
}

.usage-steps li {
  margin-bottom: 0.5rem;
}

.enhancement-list {
  list-style: none;
  padding-left: 0;
}

.enhancement-list li {
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
}

.enhancement-list i {
  margin-right: 0.8rem;
  color: var(--primary-color);
  width: 20px;
}

/* Developer Card */
.developer-card {
  background: var(--card-bg);
  border-radius: 8px;
  padding: 1.5rem;
  margin-top: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.developer-info {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.developer-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  color: white;
  font-size: 1.5rem;
}

.support-text {
  margin: 1rem 0;
  font-style: italic;
  color: var(--text-secondary);
}

.project-thumbnail {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.project-content-inner {
  padding: 1.5rem;
}

.project-content-inner h3 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  color: var(--project-title-color);
  transition: color 0.3s ease;
}

.project-content-inner p {
  color: var(--gray);
  margin-bottom: 1.5rem;
  transition: color 0.3s ease;
}

.btn {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  background: var(--primary);
  color: white;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

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

.btn-full {
  display: block;
  width: 100%;
  text-align: center;
  margin-bottom: 0.5rem;
}

.btn-download {
  background: #10b981;
}

.btn-download:hover {
  background: #059669;
}

/* Contact Section */
#contact {
  text-align: center;
  background-color: transparent;
}

.contact-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem;
  background: var(--contact-bg);
  border-radius: 8px;
  box-shadow: 0 4px 6px var(--shadow-color);
  transition: all 0.3s ease;
}

.contact-item:hover {
  transform: translateY(-3px);
}

.contact-icon {
  font-size: 1.5rem;
  color: var(--primary);
  transition: color 0.3s ease;
}

.contact-item a {
  color: var(--contact-link-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

/* Footer */
footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  text-align: center;
  padding: 2rem 0;
  transition: background 0.3s ease, color 0.3s ease;
}

/* Back button */
.back-button {
  margin-bottom: 1rem;
}

.back-button a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.project-subtitle {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.9);
}

/* Responsive Design */
@media (max-width: 900px) {
  .main-content {
    flex-direction: column;
  }

  .project-sidebar {
    width: 100%;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .project-actions {
    flex-direction: column;
    align-items: center;
  }

  .project-actions .btn {
    width: 100%;
    max-width: 250px;
  }

  /* Make sure project section padding is not too large on smaller screens */
  .project-section {
    padding: 2rem 1rem;
    margin: 1rem 0;
  }
}

@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  nav {
    margin-top: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }

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

  .contact-info {
    flex-direction: column;
    align-items: center;
  }

  .tech-item {
    flex-direction: column;
    gap: 0.3rem;
  }
}

@media (max-width: 480px) {
  .menu-toggle {
    display: block;
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
  }

  nav {
    display: none;
    width: 100%;
  }

  nav.active {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .header-content {
    align-items: flex-start;
  }

  .logo {
    margin-right: 2.5rem;
  }

  .header-right {
    width: 100%;
    justify-content: space-between;
  }

  .project-hero h1 {
    font-size: 2rem;
  }

  .project-info-card .info-item {
    flex-direction: column;
    gap: 0.2rem;
  }
}

/* Global mobile adjustments */
body {
  font-size: 16px;
}

h1 {
  font-size: 2.5rem;
}

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

.project-hero h1 {
  font-size: 2rem;
}