* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  background: #0a0a0f;
  color: white;
  overflow: hidden;
}

/* Navigation */
header {
  position: absolute;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 20px 60px;
  z-index: 10;
}

.logo {
  font-size: 22px;
  font-weight: bold;
  letter-spacing: 2px;
}

nav a {
  color: white;
  margin-left: 25px;
  text-decoration: none;
  opacity: 0.7;
  transition: 0.3s;
}

nav a:hover {
  opacity: 1;
}

/* Main */
main {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 2;
}

h1 {
  font-size: 60px;
  letter-spacing: 2px;
}

p {
  opacity: 0.7;
  margin-top: 10px;
}

/* Animations */
.fade {
  animation: fadeIn 2s ease-in-out;
}

.fade2 {
  animation: fadeIn 3s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Background Canvas */
#bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* about.html */

/* ABOUT PAGE LAYOUT */
.about-container {
  height: 100vh;
  padding-top: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.card-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(2, 220px);
  gap: 25px;
}

/* FLIP CARD */
.flip-card {
  width: 220px;
  height: 160px;
  perspective: 1000px;
}

.flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

/* Hover Effekt */
.flip-card:hover .flip-inner {
  transform: rotateY(180deg);
}

/* FRONT & BACK */
.flip-front, .flip-back {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  backface-visibility: hidden;
  padding: 15px;
}

/* BACK SIDE */
.flip-back {
  transform: rotateY(180deg);
  font-size: 14px;
  opacity: 0.9;
}

/* ICON */
.icon {
  font-size: 28px;
  margin-bottom: 10px;
}
/*
.timeline-container {
  padding: 120px 40px;
  max-width: 800px;
  margin: auto;
}

.timeline {
  position: relative;
  margin-top: 50px;
  border-left: 2px solid rgba(255,255,255,0.2);
}

.timeline-item {
  position: relative;
  margin: 40px 0;
  padding-left: 30px;
  opacity: 0;
  transform: translateY(30px);
  transition: 0.6s ease;
}

.timeline-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.dot {
  position: absolute;
  left: -7px;
  top: 5px;
  width: 12px;
  height: 12px;
  background: white;
  border-radius: 50%;
}

.content h3 {
  margin-bottom: 5px;
}

.content p {
  opacity: 0.7;
}
*/
/* contact.html */

.contact-container {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.contact-sub {
  opacity: 0.7;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 320px;
}

.contact-form input,
.contact-form textarea {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  padding: 12px;
  color: white;
  outline: none;
  border-radius: 6px;
}

.contact-form button {
  padding: 12px;
  border: none;
  cursor: pointer;
  background: white;
  color: black;
  font-weight: bold;
  transition: 0.3s;
}

.contact-form button:hover {
  opacity: 0.8;
}

.fallback {
  font-size: 12px;
  opacity: 0.5;
}

/* projects.html */

.projects-timeline {
  padding: 120px 40px;
  max-width: 900px;
  margin: auto;
}

.subtitle {
  opacity: 0.6;
  margin-bottom: 40px;
}

.timeline-cards {
  display: flex;
  flex-direction: column;
  gap: 25px;
  position: relative;
}

/* Card */
.project-card {
  position: relative;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 25px;
  border-radius: 14px;
  transition: 0.35s ease;
  overflow: hidden;
}

/* Hover Effect */
.project-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255,255,255,0.25);
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

/* subtle glow line effect */
.project-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: white;
  opacity: 0.2;
  transition: 0.4s;
}

.project-card:hover::before {
  left: 0;
}

/* Year badge */
.year {
  display: inline-block;
  font-size: 12px;
  opacity: 0.7;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

/* Meta */
.meta {
  font-size: 12px;
  opacity: 0.5;
  margin-bottom: 15px;
}

/* Title */
.project-card h2 {
  margin-bottom: 10px;
  letter-spacing: 1px;
}