/*==============================================
   FONTS & IMPORTS
   =============================================== */

@import url('https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@300;400;500;600;700&display=swap');

@font-face {
  font-family: 'Anka/Coder';
  src: url('/AnkaCoder-r.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

/* ===============================================
   RESET & BASE STYLES
   =============================================== */

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

html {
  height: 100%;
  background: 
    linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)),
    radial-gradient(circle at 20% 30%, #2d1b4e 0%, transparent 40%),
    radial-gradient(circle at 80% 20%, #0b1e38 0%, transparent 35%),
    radial-gradient(circle at 60% 70%, #200c21 0%, transparent 45%),
    radial-gradient(circle at 30% 80%, #05281b 0%, transparent 40%),
    radial-gradient(circle at 90% 60%, #1a0d2e 0%, transparent 30%),
    radial-gradient(ellipse at 50% 50%, #160b2f 0%, #120b1f 50%, #06040f 100%);
  background-attachment: fixed;
}

body {
  font-family: 'Roboto Slab', serif;
  background: transparent;
  color: rgba(255, 255, 255, 0.87);
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
}

/* ===============================================
   STAR PARALLAX BACKGROUND
   =============================================== */

#stars {
  width: 1px;
  height: 1px;
  background: transparent;
  animation: animStar 150s linear infinite;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 0;
}

#stars:after {
  content: " ";
  position: absolute;
  top: 2000px;
  width: 1px;
  height: 1px;
  background: transparent;
}

#stars2 {
  width: 2px;
  height: 2px;
  background: transparent;
  animation: animStar 300s linear infinite;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 0;
}

#stars2:after {
  content: " ";
  position: absolute;
  top: 2000px;
  width: 2px;
  height: 2px;
  background: transparent;
}

#stars3 {
  width: 3px;
  height: 3px;
  background: transparent;
  animation: animStar 450s linear infinite;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 0;
}

#stars3:after {
  content: " ";
  position: absolute;
  top: 2000px;
  width: 3px;
  height: 3px;
  background: transparent;
}

@keyframes animStar {
  from {
    transform: translateY(0px);
  }
  to {
    transform: translateY(-2000px);
  }
}

/* ===============================================
   TYPOGRAPHY
   =============================================== */

h1 {
  font-size: 3rem;
  margin-bottom: 2rem;
  font-family: 'Anka/Coder', monospace;
  background: linear-gradient(90deg, #5247b7 0%, #6e88ef 50%, #6eaaef 75%, #40a8a3 100%);
  background-size: cover;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  font-family: 'Anka/Coder', monospace;
  background: linear-gradient(135deg, #5056d9 0%, #628cd9 100%);
  background-size: cover;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; 
  background-clip: text;
  display: inline-block;
}

a {
  color: #646cff;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #747bff;
  text-decoration: underline;
}

/* ===============================================
   UTILITY ELEMENTS
   =============================================== */

/* About Me row layout */
.about-me-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  width: 80vw;
  max-width: 1200px;
  min-width: 300px;
  margin: 2rem auto;
}

.rocket-ship {
  margin-left: 2rem;
  display: flex;
  align-items: center;
  animation: rocketFloat 3s ease-in-out infinite;
}

@keyframes rocketFloat {
  0% { transform: translateY(2.5px); }
  50% { transform: translateY(0px); }
  100% { transform: translateY(2.5px); }
}

/* Divider between logo and About Me */
.about-divider-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  width: 80vw;
  max-width: 1200px;
  min-width: 300px;
  margin: 2rem auto 1.5rem auto;
}
.about-divider {
  width: 100%;
  height: 6px;
  display: block;
  position: relative;
  background: none;
  overflow: visible;
}
.rocket-ship {
  margin-left: 0.3rem;
  display: flex;
  align-items: center;
  animation: rocketFloat 3s ease-in-out infinite;
}

.about-divider::before,
.about-divider::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 1px;
  left: 0;
  bottom: 50%;
}

.about-divider::before {
  background: repeating-linear-gradient(90deg, #10111F 0px, #10111F 15px, transparent 15px, transparent 40px);
  background-size: 40px 6px;
  background-position: center;
  z-index: 1;
}

.about-divider::after {
  background: linear-gradient(
    to right,
    #62efab 5%,
    #F2EA7D 15%,
    #F2EA7D 25%,
    #FF8797 35%,
    #FF8797 45%,
    #e1a4f4 55%,
    #e1a4f4 65%,
    #82fff4 75%,
    #82fff4 85%,
    #62efab 95%
  );
  background-size: 200%;
  background-position: 0%;
  animation: aboutDividerBar 15s linear infinite;
  opacity: 1;
  transition: animation-duration 0.3s ease;
}

.about-divider-container:hover .about-divider::after,
.about-divider-container:focus .about-divider::after,
.about-divider-container:hover .rocket-ship,
.rocket-ship:hover ~ .about-divider::after {
  animation-duration: 2s !important;
}

@keyframes aboutDividerBar {
  0% { background-position: 0%; }
  100% { background-position: 200%; }
}

hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin: 2rem 0;
}

time {
  display: inline-block;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  color: #888;
  font-size: 0.9rem;
}

.fleuron {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.87);
  margin: 2rem 0;
  letter-spacing: 0.1em;
}

/* ===============================================
   NAVIGATION
   =============================================== */

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-left { 
  display: flex;
  align-items: center;
}

.nav-left a {
  color: inherit;
  text-decoration: none;
}

.nav-left a:hover {
  color: inherit;
  text-decoration: none;
}

.nav-left h1 {
  color: rgba(255, 255, 255, 0.87);
  font-size: 2rem;
  font-family: 'Anka/Coder', monospace;
  background: none;
  -webkit-background-clip: initial;
  -webkit-text-fill-color: initial;
  background-clip: initial;
  overflow: hidden; 
  border-right: .15em solid transparent; 
  white-space: nowrap; 
  margin: 0; 
  letter-spacing: .1em; 
  animation: typewriter 4s steps(20) 1s 1 normal both,
             blinkTextCursor 500ms steps(2) infinite normal;
}

@keyframes typewriter {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes blinkTextCursor {
  0% { border-right-color: rgba(255,255,255,.75); }
  50% { border-right-color: transparent; }
  100% { border-right-color: transparent; }
}

.nav-right {
  display: flex;
  gap: 1rem;
}

.nav-button {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.87);
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  font-family: 'Anka/Coder', monospace;
}

.nav-button:hover {
  border-color: #646cff;
  background-color: rgba(100, 108, 255, 0.1);
}

/* ===============================================
   FOOTER
   =============================================== */

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: rgba(255, 255, 255, 0.02);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: auto;
}

.footer-left {
  display: flex;
  align-items: center;
}

.footer-left p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  margin: 0;
  font-family: 'Anka/Coder', monospace;
}

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

.footer-right p {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
  font-family: 'Anka/Coder', monospace;
}

.footer-link:hover {
  color: #646cff;
}

/* ===============================================
   LAYOUT COMPONENTS
   =============================================== */

.content {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.blog-page .content {
  max-width: none;
  margin: 0;
  padding: 4rem 5rem;
}

.breadcrumb {
  margin-bottom: 2rem;
}

.breadcrumb-link {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.breadcrumb-link:hover {
  color: #646cff;
}

/* ===============================================
   HOME PAGE
   =============================================== */

.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  width: 100%;
  position: relative;
  z-index: 1;
}

.main-content {
  flex: 1;
  display: block;
  width: 100%;
  padding: 0.5rem 0 0 0;
}
.main-content h1 {
  margin: 0.5rem auto 2rem auto;
}

.main-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.center-logo {
  margin: 2rem auto 0 auto;
}

.main-content h1 {
  font-family: 'Anka/Coder', monospace;
  background: linear-gradient(90deg, #685cd4 0%, #516be8 25%, #6e88ef 50%, #6eaaef 75%, #40a8a3 100%);
  background-size: 100% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.center-logo {
  width: 450px;
  height: auto;
  display: block;
  margin: 3rem auto;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
        0% {
          transform: translateY(0px);
        }
        50% {
          transform: translateY(-15px);
        }
        100% {
          transform: translateY(0px);
        }
      }

/* ===============================================
   ABOUT ME SECTION
   =============================================== */

.about-me-section {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 2rem;
  width: 80vw;
  max-width: 1200px;
  min-width: 300px;
  margin: 0 auto 2rem auto;
  text-align: left;
  transition: border-color 0.3s ease, transform 0.3s ease;
  animation: aboutMeGrow 0.6s cubic-bezier(0.42, 0, 0.58, 1);
}

.about-me-hidden {
  transform: translateY(100px);
  opacity: 0;
  animation: none !important;
}


@keyframes aboutMeGrow {
  0% {
    transform: scale(0.95);
    opacity: 0;
  }
  60% {
    transform: scale(1.05);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.about-me-section:hover {
  border-color: #646cff;
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.05);
}

.about-me-container {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.about-me-content h2 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  text-align: left;
}

.about-me-content p {
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.87);
  margin-bottom: 0;
  font-size: 1.05rem;
}

.about-me-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 1rem 0;
}

.feature-item {
  background: rgba(100, 108, 255, 0.05);
  border: 1px solid rgba(100, 108, 255, 0.2);
  border-radius: 10px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

.feature-item:hover {
  background: rgba(100, 108, 255, 0.15);
  border-color: rgba(100, 108, 255, 0.5);
  transform: translateY(-3px);
}

.feature-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 0.75rem;
}

.feature-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #646cff;
  font-family: 'Roboto Slab', serif;
  font-weight: 600;
}

.feature-item p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.5;
  margin: 0;
}

.about-me-closing {
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.87);
  font-size: 1.05rem;
  text-align: center;
  font-style: italic;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin: 0;
}

.about-divider-line {
  border: none;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.3), transparent);
  margin: 2rem 0;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(100, 108, 255, 0.1);
  border: 1px solid rgba(100, 108, 255, 0.3);
  transition: all 0.3s ease;
  text-decoration: none;
  cursor: pointer;
}

.social-icon:hover {
  background: rgba(100, 108, 255, 0.25);
  border-color: #646cff;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(100, 108, 255, 0.3);
}

.social-icon img {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
  filter: brightness(0) invert(1);
}

.social-icon:hover img {
  transform: scale(1.1);
}


/* ===============================================
   PROJECTS PAGE
   =============================================== */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.project-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 2rem;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: #646cff;
}

.project-card h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #646cff;
}

.project-card p {
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
}

/* ===============================================
   BLOG PAGE
   =============================================== */

.blog-posts {
  margin-top: 3rem;
}

.blog-post {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  transition: border-color 0.3s ease;
}

.blog-post:hover {
  border-color: #646cff;
}

.blog-post h2 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: #646cff;
}

.blog-post .date {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.blog-post p {
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.7);
}

.blog-post-link {
  color: #646cff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.blog-post-link:hover {
  color: #747bff;
}

.read-more {
  display: inline-block;
  margin-top: 1rem;
  color: #646cff;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.read-more:hover {
  color: #747bff;
}

/* ===============================================
   INDIVIDUAL BLOG POST
   =============================================== */

.blog-post-content {
  max-width: 800px;
}

.full-blog-post {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 3rem;
}

.post-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 2rem;
  margin-bottom: 3rem;
}

.post-header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.post-meta {
  color: rgba(255, 255, 255, 0.5);
}

.post-content {
  line-height: 1.8;
}

.post-content p,
.addendum p {
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.87);
}

.post-content h2 {
  font-size: 1.8rem;
  margin: 2.5rem 0 1rem 0;
  color: #646cff;
}

.post-content ul, 
.post-content ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.post-content li {
  margin-bottom: 0.5rem;
  color: rgba(255, 255, 255, 0.87);
}

.post-content .todo-box-list {
  list-style: none;
  padding-left: 0;
}

.post-content .todo-box-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.7rem;
}

.post-content .todo-box-list li::before {
  content: "";
  width: 0.9rem;
  height: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 2px;
  flex: 0 0 0.9rem;
  margin-top: 0.35rem;
}

.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1.5rem 0;
  display: block;
}

.addendum time {
  margin-bottom: 1rem;
}

/* ===============================================
   DROPDOWN MENUS
   =============================================== */

.dropdown-menu-row {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.dropdown-container {
  position: relative;
  display: inline-block;
}

.dropdown-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.87);
  padding: 1rem 1.5rem;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Roboto Slab', serif;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 180px;
  justify-content: space-between;
}

.dropdown-btn:hover {
  border-color: #646cff;
  background-color: rgba(100, 108, 255, 0.1);
  transform: translateY(-2px);
}

.dropdown-arrow {
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

.dropdown-btn:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-content {
  display: none;
  position: absolute;
  background: rgba(30, 30, 30, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  z-index: 1;
  min-width: 200px;
  top: 100%;
  left: 0;
  margin-top: 0.5rem;
  backdrop-filter: blur(10px);
}

.dropdown-content.show {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.dropdown-content a {
  color: rgba(255, 255, 255, 0.87);
  padding: 0.75rem 1rem;
  text-decoration: none;
  display: block;
  transition: background-color 0.3s ease;
  font-family: 'Roboto Slab', serif;
}

.dropdown-content a:hover {
  background-color: rgba(100, 108, 255, 0.2);
  color: #646cff;
}

.dropdown-content a:first-child {
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.dropdown-content a:last-child {
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

/* Responsive design for smaller screens */
@media (max-width: 768px) {
  .dropdown-menu-row {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  
  .dropdown-btn {
    min-width: 250px;
  }
}

/* ===============================================
   HAMBURGER MENU
   =============================================== */

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 0.5rem;
  transition: all 0.3s ease;
}

.hamburger-line {
  width: 25px;
  height: 3px;
  background-color: rgba(255, 255, 255, 0.87);
  margin: 3px 0;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.hamburger.active .hamburger-line:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

.mobile-nav-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(30, 30, 30, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 1000;
  transform: translateY(-10px);
  opacity: 0;
  transition: all 0.3s ease;
}

.mobile-nav-menu.active {
  display: block;
  transform: translateY(0);
  opacity: 1;
}

.mobile-nav-button {
  display: block;
  color: rgba(255, 255, 255, 0.87);
  text-decoration: none;
  padding: 1rem 2rem;
  font-family: 'Anka/Coder', monospace;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.mobile-nav-button:hover {
  background-color: rgba(100, 108, 255, 0.1);
  color: #646cff;
}

.mobile-nav-button:last-child {
  border-bottom: none;
}

/* Mobile Responsive Navigation */
@media (max-width: 768px) {
  .navbar {
    position: relative;
  }

  .nav-right {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .nav-left h1 {
    font-size: 1.5rem;
  }

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

  .about-me-section {
    width: 90vw;
    padding: 1.5rem;
  }

  .about-me-content h2 {
    font-size: 1.75rem;
  }

  .about-me-content p,
  .about-me-closing {
    font-size: 1rem;
  }

  .center-logo {
    width: 300px;
  }
}
