/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #231f20;
  --bg-color: #ffffff;
  --text-color: #333;
  --header-height: 70px;
  --transition-speed: 0.3s;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--bg-color);
}

/* Header Navigation */
#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  opacity: 0;
  transform: translateY(-100%);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

#header.visible {
  opacity: 1;
  transform: translateY(0);
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

.logo-container {
  height: 50px;
  display: flex;
  align-items: center;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.logo-container:hover {
  opacity: 0.8;
}

.header-logo {
  height: 100%;
  width: auto;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

#header.visible .header-logo {
  opacity: 1;
  transform: scale(1);
}

.nav-links {
  display: flex;
  gap: 30px;
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.4s ease 0.15s, transform 0.4s ease 0.15s;
}

#header.visible .nav-links {
  opacity: 1;
  transform: translateX(0);
}

.nav-links a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  position: relative;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Hero Section */
#hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.hero-logo {
  width: 100%;
  max-width: 500px;
  padding: 0 30px;
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.hero-logo.fading {
  opacity: 0.3;
  transform: scale(0.95);
}

.hero-logo.hidden {
  opacity: 0;
  transform: scale(0.9);
  pointer-events: none;
}

.hero-logo img {
  width: 100%;
  height: auto;
  display: block;
}

/* Content Sections */
section {
  min-height: 60vh;
  padding: 80px 20px;
}

#about {
  position: relative;
  background-color: #f9f9f9;
  overflow: hidden;
}

.about-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('https://via.placeholder.com/1920x1080/e8e8e8/cccccc?text=Background');
  background-size: cover;
  background-position: center;
  opacity: 0.3;
  z-index: 0;
}

#about .container {
  position: relative;
  z-index: 1;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
}

.portrait-container {
  flex-shrink: 0;
}

.portrait-image {
  width: 200px;
  height: 266px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.about-text {
  flex: 1;
}

#contact {
  background-color: #ffffff;
}

.container {
  max-width: 800px;
  margin: 0 auto;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 30px;
  color: var(--primary-color);
  text-align: center;
}

p {
  font-size: 1.1rem;
  margin-bottom: 20px;
  line-height: 1.8;
}

p.tagline {
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--primary-color);
  line-height: 2;
}

.contact-info {
  margin-top: 40px;
  padding: 30px;
  background-color: #f9f9f9;
  border-radius: 10px;
  text-align: center;
}

.contact-info p {
  margin-bottom: 15px;
}

/* Footer */
footer {
  background-color: var(--primary-color);
  color: white;
  text-align: center;
  padding: 30px 20px;
}

footer p {
  margin: 0;
  font-size: 0.9rem;
}

/* Responsive Design */
@media (min-width: 768px) {
  .hero-logo {
    max-width: 600px;
  }

  h2 {
    font-size: 3rem;
  }

  p {
    font-size: 1.2rem;
  }

  .nav-links {
    gap: 40px;
  }

  .nav-links a {
    font-size: 18px;
  }

  .about-content {
    flex-direction: row;
    align-items: flex-start;
    gap: 40px;
  }

  .portrait-image {
    width: 250px;
    height: 333px;
  }
}

@media (min-width: 1024px) {
  .hero-logo {
    max-width: 700px;
  }

  section {
    padding: 100px 40px;
  }

  .portrait-image {
    width: 300px;
    height: 400px;
  }

  .about-content {
    gap: 50px;
  }
}

/* Animation for smooth appearance */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.container > * {
  animation: fadeInUp 0.6s ease-out;
}
