/* Base font for body */
body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    color: #070F2B;
    line-height: 1.6;
}

/* Headings use Gowun Batang */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Gowun Batang', serif;
    font-weight: 700;
}

html {
  scroll-behavior: smooth;
}

/* Layout */
.layout {
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background-color: #ffffff;
    border-bottom: 1px solid #dbdbdb;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header h1 {
    margin: 0;
    font-size: 1.5rem;
}

.nav-item {
    margin: 0 15px;
    font-weight: 100;
    color: #070F2B;
    text-decoration: none;
    transition: color 0.2s;
}

.nav-item:hover {
    color: #9190C2; /* Light Purple */
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    color: gray;
    border-top: 1px solid #dbdbdb;
    margin-top: 40px;
    font-size: 0.9rem;
}

.social-links {
    margin-top: 10px;
}

.social-links a {
    margin: 0 10px;
    color: gray;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.social-links a:hover {
    color: #9190C2;
}


/* Project cards */
.project-card {
    border: 1px solid #dbdbdb;
    border-radius: 8px;
    margin-bottom: 20px;
    padding: 20px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.project-card h2 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.project-card img {
    width: 100%;
    height: 200px;       /* consistent card height */
    object-fit: cover;   /* crop instead of stretching */
}

/* Timestamp */
.timestamp {
    font-size: 0.9rem;
    color: gray;
    text-align: right;
}

/* Links */
a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #9190C2;
}

/* Hero section */
.hero {
    position: relative;
    text-align: left;
    margin: 0 0 80px 0;
    padding: 120px 100px;
    color: #ffffff;
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)),
        url('/static/uploads/public/background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin-bottom: 30px;
    text-shadow: 1px 1px 6px rgba(0,0,0,0.4);
}

.hero-buttons {
    display: flex;
    justify-content: left;
    gap: 20px;
}

.hero-btn {
    padding: 10px 20px;
    border-radius: 6px;
    background-color: #9190C2;
    color: #ffffff;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.2s, transform 0.2s;
}

.hero-btn:hover {
    background-color: #525C91;
}

/* Projects grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin: 20px 0 40px;
}

.project-detail-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
}

.project-detail-image-side {
    flex: 1;
    max-width: 48%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
}

/* Shared container for responsive iframes */
.embed-container {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 2rem auto;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Docs */
.doc-embed {
  width: 100%;
  height: 600px;
  border: none;
}

/* Demos */
.demo-embed {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.embed-container:has(.demo-embed) {
  padding-top: 56.25%; /* 16:9 ratio */
  height: 0;
}

.accordion {
  background-color: #d6d6ec;
  color: #070F2B;
  cursor: pointer;
  padding: 16px;
  width: 100%;
  text-align: left;
  border: none;
  border-radius: 6px;
  outline: none;
  transition: 0.4s;
}

.active, .accordion:hover {
  background-color: #a8afd3;
}

.panel {
  max-height: 0;
  overflow: hidden;
  background-color: #f7f7fd;
  padding-left: 25px;
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 6px;
  transition: max-height 0.2s ease-out;
}

.text-turtle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 20px 0;
}

turtle {
    float: left;
    padding: 15px;
}

.turtle1 ul {
  list-style-type: disc;
  padding-right: 40px;
}

.turtle2 {
  border-radius: 6px;
}
