/* Import Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");

/* CSS Variables - Darker Orange/Amber Palette */
:root {
  /* Primary Colors - Sophisticated Slate */
  --primary-color: #0f172a;
  --secondary-color: #1e293b;
  --accent-color: #ea580c;

  /* Text Colors */
  --text-dark: #0f172a;
  --text-gray: #64748b;
  --text-light: #94a3b8;

  /* Background Colors */
  --background: #ffffff;
  --card-bg: #f8fafc;
  --border-color: #e2e8f0;

  /* Accent - Darker Orange */
  --accent-primary: #ea580c;
  --accent-secondary: #c2410c;
  --accent-hover: #9a3412;
  --accent-light: #fb923c;

  /* Gradient */
  --gradient-start: #ea580c;
  --gradient-end: #c2410c;
}

/* Dark Mode Variables - Fixed Black Background */
[data-theme="dark"] {
  --primary-color: #f1f5f9;
  --secondary-color: #cbd5e1;
  --accent-color: #fb923c;

  --text-dark: #f1f5f9;
  --text-gray: #94a3b8;
  --text-light: #64748b;

  /* Fixed Background Colors - Now properly dark */
  --background: #0f172a;
  --card-bg: #1e293b;
  --border-color: #334155;

  /* Accent - Lighter in dark mode for contrast */
  --accent-primary: #fb923c;
  --accent-secondary: #ea580c;
  --accent-hover: #fdba74;
  --accent-light: #ea580c;

  /* Gradient */
  --gradient-start: #fb923c;
  --gradient-end: #ea580c;
}

/* Theme Toggle Button */
#theme-toggle {
  background: none;
  border: none;
  color: var(--text-gray);
  font-size: 24px;
  cursor: pointer;
  padding: 5px;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
}

#theme-toggle:hover {
  color: var(--accent-primary);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--background);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Container */
.container {
  width: 100%;
  max-width: 1204px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Styles */
header {
  background-color: var(--background);
  padding: 41px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo Styles */
.logo {
  text-decoration: none;
  display: inline-block;
}

.logo-code {
  display: flex;
  align-items: center;
  gap: 2px;
  font-family: "Courier New", monospace;
  font-size: 24px;
  font-weight: 700;
}

.logo-code .bracket {
  color: var(--accent-primary);
  font-size: 28px;
  transition: color 0.3s ease;
}

.logo-code .name {
  color: var(--text-dark);
  font-size: 24px;
  letter-spacing: 1px;
  transition: color 0.3s ease;
}

.logo-code:hover .bracket {
  color: var(--accent-hover);
}

.logo-code:hover .name {
  color: var(--accent-primary);
}

/* Navigation Menu */
.nav-menu {
  display: flex;
  gap: 51px;
  list-style: none;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  text-decoration: none;
  color: var(--text-gray);
  font-weight: 500;
  font-size: 18px;
  transition: color 0.3s ease;
  position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--text-dark);
}

.nav-menu a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-primary);
  transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

/* Blog Link Button */
.blog-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--accent-primary);
  color: white !important;
  border-radius: 6px;
  font-weight: 500;
  font-size: 16px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.blog-link::after {
  display: none;
}

.blog-link:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

.blog-link i {
  font-size: 12px;
}

/* Social Links */
.social-links {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-left: 51px;
}

.social-links a {
  color: var(--text-gray);
  font-size: 30px;
  transition: color 0.3s ease, transform 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-links a:hover {
  color: var(--accent-primary);
  transform: translateY(-2px);
}

.social-links a::after {
  display: none;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.menu-toggle span {
  width: 30px;
  height: 3px;
  background-color: var(--text-dark);
  transition: 0.3s;
  border-radius: 3px;
}

/* Main Content */
main {
  flex: 1;
}

/* Footer */
footer {
  padding: 60px 0 40px;
  text-align: center;
  border-top: 1px solid var(--border-color);
  transition: border-color 0.3s ease;
}

footer p {
  font-size: 18px;
  font-weight: 400;
  color: var(--text-gray);
  line-height: 26px;
}

footer span {
  color: var(--text-dark);
  font-weight: 500;
}

footer .love {
  color: var(--accent-primary);
}

footer .coffee {
  color: var(--accent-primary);
}

/* Responsive - Mobile First */
@media (max-width: 1200px) {
  header {
    padding: 20px 0;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 80px;
    flex-direction: column;
    background-color: var(--background);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    padding: 30px 0;
    gap: 30px;
    z-index: 999;
  }

  .nav-menu.active {
    left: 0;
  }

  .social-links {
    margin-left: 0;
    margin-top: 20px;
  }

  footer p {
    font-size: 16px;
    padding: 0 20px;
  }
}
