/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Times New Roman', serif;
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 1s ease-out forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body {
    #home {
  background-image: url(img/bgtitle.png); 
  background-size: contain;    
  background-repeat: no-repeat; 
  background-position: center;
  background-color: #c6d7ff

}
#about {
  background-color: #cab6ff; /* pastel purple */
  padding: 80px 0;
}

}

/* HEADER */
header {
    width: 100%;
    padding: 15px 40px;
    background: #ffe0b8;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 24px;
    font-weight: bold;
}

.navbar a {
    margin: 0 20px;
    text-decoration: none;
    font-size: 18px;
    color: #4d4dff;
}

.navbar {
    display: flex;
}

/* HAMBURGER */
.hamburger {
    width: 35px;
    height: 25px;
    display: none;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

.hamburger span {
    height: 4px;
    width: 100%;
    background: #4d4dff;
    border-radius: 6px;
}

/* TITLE IMAGE */
.title-container {
    text-align: center;
    padding: 100px 20px;
}

.title-graphic {
    width: 60%;
    max-width: 700px;
    opacity: 0;
    animation: fadeInUp 1.8s ease forwards, float 5s ease-in-out infinite;
    filter: drop-shadow(0 0 12px rgba(180, 160, 255, 0.6));
}

/* fade-in */
@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(25px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* floating */
@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}


#about {
  padding: 60px 20px;
}

.about-layout {
  margin-top: 30px;
}

.about-photo {
  width: 250px;
  height: 250px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

/* PROJECTS */
.projects-section {
    padding: 70px 10%;
    background: #b3e9ff;
}

.projects-section h2 {
    text-align: center;
    margin-bottom: 40px;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

/* Frame around My Projects section */
.projects-frame {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px;
  background: #ffffff;
  border: 3px solid #e3c8ff;
  border-radius: 20px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.12);
}


/* Project grid */
.projects-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

/* Project cards */
.project-card {
  background: #f9ebe2;
  padding: 15px;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.2s ease;
}

.project-card:hover {
  transform: translateY(-5px);
}


.project-image {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 10px;
}

.project-card {
    padding: 50px 20px;
    background: white;
    border-radius: 12px;
    text-align: center;
    font-size: 22px;
    color: #4d4dff;
    cursor: pointer;
    transition: 0.3s;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.2);
}

/* Project “pages” */
.project-page {
  padding: 120px 40px;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

/* pastel backgrounds */
.pastel-1 { background: #bfc3ff; }
.pastel-2 { background: #b7dcff; }
.pastel-3 { background: #9be3e3; }
.pastel-4 { background: #b8d4ff; }

/* text */
.project-title {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 15px;
}

.project-paragraph {
  font-size: 18px;
  line-height: 1.6;
}

/* carousel image style */
.project-img {
  height: 380px;
  object-fit: cover;
  border-radius: 12px;
}


/* CONTACT */
.contact-section {
    padding: 60px 10%;
    background: #ffe8cc;
    text-align: center;
}

/* FOOTER */
footer {
    padding: 20px;
    text-align: center;
    background: #ffe0b8;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .navbar {
        display: none;
        position: absolute;
        top: 70px;
        right: 20px;
        background: #ffe0b8;
        flex-direction: column;
        padding: 20px;
        border-radius: 10px;
    }

    .navbar a {
        margin: 15px 0;
    }

    .hamburger {
        display: flex;
    }
}

