/*
 * Global stylesheet for Muhammad Rizkita’s academic portfolio.
 * This file defines base typography, layout utilities and component styles
 * used across all pages of the site.
 */

/* Base styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
body {
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f7f8fa;
body {
  background-image: 
  linear-gradient(rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.6)),
    url("assets/batik.png");
  background-repeat: repeat;
  background-position: top left;
  background-size: auto;
}


}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 0;
}

/* Navigation bar */
.navbar {
  background-color: #003161;
  color: #fff;
  padding: 0.5rem 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

.logo {
  font-size: 1.4rem;
  font-weight: bold;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 1rem;
}

.nav-list li a {
  color: #fff;
  text-decoration: none;
  padding: 0.5rem 0.8rem;
  transition: background-color 0.3s;
  border-radius: 4px;
}

.nav-list li a:hover,
.nav-list li a.active {
  background-color: #F4891B;
}

/* Hero section */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 0 3rem;
  background: rgba(255, 255, 255, 0.8); /* kotak putih transparan */
  padding: 1.5rem;
  border-radius: 12px;   /* sudut melengkung biar estetik */
  box-shadow: 0 4px 12px rgba(0,0,0,0.1); /* sedikit bayangan */
}

}

@media (min-width: 768px) {
  .hero {
    flex-direction: row;
    text-align: left;
  }
}

.profile-img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .profile-img {
    margin-right: 2rem;
    margin-bottom: 0;
  }
}

.hero-content h1 {
  font-size: 2rem;
  margin-bottom: 0.25rem;
}

.hero-content h2 {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 0.75rem;
}

.hero-content p {
  max-width: 600px;
  margin-bottom: 1rem;
}

.social-icons a {
  color: #0a3d62;
  font-size: 1.5rem;
  margin-right: 1rem;
  display: inline-block;
  transition: color 0.3s;
}

.social-icons a:last-child {
  margin-right: 0;
}

.social-icons a:hover {
  color: #07426c;
}

/* Thoughts section */
.thoughts {
  padding: 2rem 0;
}

.thoughts h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  text-align: center;
}

.carousel-container {
  position: relative;
  overflow: hidden;
}

.carousel {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 1rem;
  padding: 1rem 0;
}

.carousel::-webkit-scrollbar {
  display: none; /* hide scroll bar */
}

.card {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  flex: 0 0 280px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.card h3 {
  font-size: 1.1rem;
  margin: 0.75rem 0.75rem 0.5rem;
  flex-grow: 0;
}

.card p {
  font-size: 0.9rem;
  margin: 0 0.75rem 0.75rem;
  flex-grow: 1;
}

.read-more {
  display: inline-block;
  margin: 0 0.75rem 1rem;
  color: #0a3d62;
  font-weight: bold;
  text-decoration: none;
  transition: color 0.3s;
}

.read-more:hover {
  color: #07426c;
}

/* Activities section styles */
.activities {
  padding: 2rem 0;
}

.activities h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  text-align: center;
}


.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(10, 61, 98, 0.8);
  border: none;
  color: #fff;
  font-size: 2rem;
  padding: 0 0.5rem;
  cursor: pointer;
  z-index: 1;
  border-radius: 4px;
}

.carousel-btn.prev {
  left: 0;
}

.carousel-btn.next {
  right: 0;
}

/* Footer */
.footer {
  background-color: #0a3d62;
  color: #fff;
  text-align: center;
  padding: 1rem 0;
  margin-top: 2rem;
}

/* Portfolio page styles */
.section {
  margin-bottom: 2rem;
}

.section h2 {
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
  color: #0a3d62;
}

.section ul {
  list-style: disc inside;
  margin-left: 1rem;
}

.section li {
  margin-bottom: 0.5rem;
}

.section a {
  color: #0a3d62;
  text-decoration: none;
}

.section a:hover {
  text-decoration: underline;
}

/* Contact form styles */
.contact-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

.contact-container label {
  font-weight: bold;
}

.contact-container input,
.contact-container textarea {
  padding: 0.5rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.contact-container textarea {
  height: 150px;
  resize: vertical;
}

.contact-container button {
  background-color: #0a3d62;
  color: #fff;
  border: none;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border-radius: 4px;
  cursor: pointer;
  align-self: flex-start;
  transition: background-color 0.3s;
}

.contact-container button:hover {
  background-color: #07426c;
}