/* --------------------------------------------------
   GLOBAL RESET
-------------------------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, sans-serif;
  background: #ffffff;
  color: #222;
  line-height: 1.6;
  transition: background 0.3s, color 0.3s;
}

body.dark {
  background: #111;
  color: #e6e6e6;
}

img {
  max-width: 100%;
  display: block;
}

/* RTL Support */
body.rtl {
  direction: rtl;
  text-align: right;
}

/* --------------------------------------------------
   CONTAINERS
-------------------------------------------------- */
.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* --------------------------------------------------
   HEADER
-------------------------------------------------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid #ddd;
  position: sticky;
  top: 0;
  z-index: 1000;
}

body.dark .site-header {
  background: #1a1a1a;
  border-color: #333;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.logo img {
  width: 55px;
  margin-right: 12px;
}

.logo-text .logo-name {
  font-weight: bold;
  font-size: 1.1rem;
}

.logo-text .logo-tagline {
  font-size: 0.8rem;
  opacity: 0.7;
}

/* --------------------------------------------------
   NAVIGATION
-------------------------------------------------- */
.main-nav {
  display: flex;
  gap: 20px;
  align-items: center;
}

.main-nav a {
  text-decoration: none;
  color: inherit;
  font-weight: 500;
}

.main-nav a.active {
  color: #0078ff;
}

.dark-toggle {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
}

/* Mobile Nav */
@media (max-width: 768px) {
  .main-nav {
    position: absolute;
    top: 70px;
    right: 0;
    background: inherit;
    width: 200px;
    flex-direction: column;
    padding: 20px;
    display: none;
  }

  .main-nav.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }
}

/* --------------------------------------------------
   HERO SECTION
-------------------------------------------------- */
.hero {
  padding: 80px 0;
  text-align: center;
}

.hero h1 {
  font-size: 2.2rem;
  margin-bottom: 15px;
}

.hero-actions {
  margin-top: 25px;
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --------------------------------------------------
   BUTTONS
-------------------------------------------------- */
.btn {
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  transition: 0.2s;
}

.btn-primary {
  background: #0078ff;
  color: #fff;
}

.btn-primary:hover {
  background: #005fcc;
}

.btn-outline {
  border: 2px solid #0078ff;
  color: #0078ff;
}

.btn-outline:hover {
  background: #0078ff;
  color: #fff;
}

/* --------------------------------------------------
   SECTIONS
-------------------------------------------------- */
.section {
  padding: 60px 0;
}

.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

@media (max-width: 768px) {
  .two-column {
    grid-template-columns: 1fr;
  }
}

.highlight {
  background: #f7f7f7;
}

body.dark .highlight {
  background: #1a1a1a;
}

/* --------------------------------------------------
   PROJECT CARDS
-------------------------------------------------- */
.project-card {
  background: #fafafa;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
}

body.dark .project-card {
  background: #1a1a1a;
}

/* --------------------------------------------------
   FOOTER
-------------------------------------------------- */
.site-footer {
  background: #f0f0f0;
  padding: 40px 0 20px;
  margin-top: 40px;
}

body.dark .site-footer {
  background: #1a1a1a;
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.footer-bottom {
  text-align: center;
  margin-top: 20px;
  opacity: 0.7;
}

@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------
   ANIMATIONS
-------------------------------------------------- */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
