:root {
  --bg-color-start: #131313;
  --bg-color-end: #181818;
  --primary-color: #ffffff;
  --accent-color: #ff5c5c;
  --secondary-color: #888888;
  --font-family: 'Poppins', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
  font-family: Poppins;
}

body {
  font-family: var(--font-family);
  background: linear-gradient(to bottom, var(--bg-color-start), var(--bg-color-end));
  color: var(--primary-color);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  font-weight: 500;
  transition: color 0.3s;
}

a:hover {
  color: var(--accent-color);
}


/* Navigation */
nav {
  display: flex;
  justify-content: right;
  align-items: center;
  position: sticky;
  top: 0;
  padding: 1rem;
  z-index: 998;
}

nav ul.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav a {
  text-decoration: none;
  color: var(--primary-color);
  font-weight: 500;
  transition: color 0.3s;
}

nav a:hover {
  color: var(--accent-color);
}

/* Burger Menu Icon */
.burger {
  display: none;
}

/* Header / Hero */
header {
  text-align: left;
  padding: 12rem 1rem 8em;
  background: url("../assets/p18.jpeg") no-repeat center center;
  background-size: cover;
  position: relative;
}

header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

header h1 {
  position: relative;
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

header p {
  position: relative;
  color: var(--secondary-color);
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.header-text {
position: relative;
top:4rem;

}

.header-text p {
margin-top: -10px;
color: var(--primary-color);

}



/* Sections */
section {
  padding: 1.5rem 1rem;
  max-width: 1000px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

section.visible {
  opacity: 1;
  transform: translateY(0);
}

section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  font-weight: 700;
  text-align: left;
  letter-spacing: 1px;
}

/* About Section */
#about p {
  color: var(--secondary-color);
  max-width: 800px;
  margin: 1rem auto;
  text-align: left;
  font-weight: 300;
  line-height: 1.7;
}

/* Portfolio Section */
#portfolio .grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

#portfolio .grid-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  transition: transform 0.3s;
}

#portfolio .grid-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s;
}

#portfolio .grid-item:hover img {
  transform: scale(1.05);
}

#portfolio .grid-item:hover {
  box-shadow: 0 8px 16px rgba(255, 92, 92, 0.2);
}

.portfolio-text p {
  color: var(--secondary-color);
  max-width: 800px;
  margin: 1rem auto;
  text-align: left;
  font-weight: 300;
  line-height: 1.7;
}

/* Contact Section */
.contact-info {
  display: flex;
  flex-direction: column;
}

.info-item {
  display: flex;
  justify-content: left;
  gap: 20px;
}

.label {
  min-width: 66px;
  font-weight: bold;
  text-align: right;
}

.value {
  flex: 1;
  text-align: left;
}

.sep {
  float: left;
  margin-right: 20px;
}

.nofloat {
  float: none;
}

.centerme {
  display: flex;
  justify-content: center;
}

/* Imprint*/

#imprint {
display:none;

}

#imprint .pcolor {
color: var(--primary-color);

}

#imprint p {
  color: var(--secondary-color);
  max-width: 800px;
  margin: 1rem auto;
  text-align: left;
  font-weight: 300;
  line-height: 1.7;
}

/*Privacy disclaimer*/

#privacy .pcolor {
color: var(--primary-color);

}

#privacy p {
  color: var(--secondary-color);
  max-width: 800px;
  margin: 1rem auto;
  text-align: left;
  font-weight: 300;
  line-height: 1.7;
}

#privacy ul {
  max-width: 800px;
  margin: 1rem auto;
  text-align: left;
  font-weight: 300;
  line-height: 1.7;
}

#privacy li {
  max-width: 800px;
  margin-left:2rem;
  text-align: left;
  font-weight: 300;

}

/* Footer */

footer {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--secondary-color);
  font-size: 0.9rem;
}

footer a {
  text-decoration: none;
  color: var(--primary-color);
  font-weight: 500;
  transition: color 0.3s;
}

footer a:hover {
  color: var(--accent-color);
}


/* Responsive Navigation */
@media (max-width: 768px) {
  nav ul.nav-links {
    flex-direction: column;
    gap: 1rem;
  }
}

/* Burger Menu for Portrait Orientation */
@media screen and (orientation: portrait) {
  .burger {
    display: block;
    cursor: pointer;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
  }
  .burger div {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 5px;
    transition: all 0.3s;
  }
  nav ul.nav-links {
    display: none;
    position: absolute;
    top: 0px;
    right: 0;
    background: linear-gradient(to bottom, var(--bg-color-start), var(--bg-color-end));
    flex-direction: column;
    width: 100%;
    text-align: center;
    padding: 1rem 0;
  }
  nav ul.nav-links.active {
    display: flex;
  }
  nav ul.nav-links li {
    margin: 0.5rem 0;
  }
}
