:root {
  --bg-color: #080808;
  --second-bg-color: #131313;
  --text-color: white;
  --main-color: #00ffee;
}

html {
  scroll-behavior: smooth;
  font-size: 60%;
  overflow-x: hidden;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(0, 255, 238, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(123, 44, 191, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(0, 255, 238, 0.05) 0%, transparent 50%);
  background-attachment: fixed;
  min-height: 10vh;
}

.container {
  max-width: 100%;
  padding: 15px;
  margin: 0 auto;
}

.row {
  margin: 0;
}

.title {
  color: white;
  font-size: 40px;
  font-weight: bold;
}

.kr_about {
  color: white;
  text-align: center;
  font-size: 18px;
}

.personal-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
  margin-top: 5rem;
  position: relative;
  z-index: 2;
  min-height: 90vh;
}

.personal-content h1 {
  font-size: 7rem;
  font-weight: 700;
  margin-top: 50px;
  line-height: 1.2;
  background: linear-gradient(135deg, var(--text-color), var(--main-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.personal-content h3 {
  margin-bottom: 2rem;
  margin-top: 1rem;
  font-size: 4.5rem;
  position: relative;
}

.personal-content p {
  font-family: "Fira Mono", monospace;
  font-size: 18px;
  line-height: 37px;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: justify;
  backdrop-filter: none;
  background: transparent;
  border-radius: 15px;
  padding: 3rem;
  border: none;
}

.personal-content .formal-pic img {
  max-width: 100%;
  height: auto;
}

span {
  color: var(--main-color);
}

.logo span {
  color: var(--main-color);
}

.social-icons {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.social-icons a {
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  font-size: 3rem;
  border-radius: 50%;
  color: var(--main-color);
  width: 60px;
  height: 60px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.social-icons a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.social-icons a:hover::before {
  left: 100%;
}

.social-icons a:hover {
  color: white;
  border-color: var(--main-color);
  box-shadow: 0 0 30px rgba(0, 255, 238, 0.5);
  transform: translateY(-5px) scale(1.1);
  text-decoration: none;
}

.text-animation {
  font-size: 2rem;
  font-weight: 600;
}

.text-animation span {
  position: relative;
}

.text-animation span::before {
  content: "";
  color: var(--main-color);
  animation: words 20s infinite;
}

.text-animation span::after {
  content: "";
  background-color: var(--bg-color);
  position: absolute;
  width: calc(100% + 8px);
  height: 100%;
  border-left: 3px solid var(--bg-color);
  right: -8px;
  animation: cursor 0.6s infinite, typing 20s steps(50) infinite;
}

@keyframes cursor {
  to {
    border-left: 2px solid var(--main-color);
  }
}

@keyframes words {
  0%, 25% {
    content: "Bachelor Student";
  }
  26%, 50% {
    content: "SOC Analyst";
  }
  51%, 75% {
    content: "Bachelor Student";
  }
  76%, 100% {
    content: "SOC Analyst";
  }
}

@keyframes typing {
  0%, 10%, 15%, 30%, 25%, 50%, 55%, 70%, 75%, 90%, 95%, 100% {
    width: 0;
  }
  5%, 20%, 25%, 40%, 45%, 60%, 65%, 80%, 85%, 100% {
    width: calc(100% + 8px);
  }
}

/* Section Titles */
.section-title {
  font-size: 60px;
  font-weight: bold;
  text-align: center;
  margin-top: 3rem; /* Reduced from 8rem */
  margin-bottom: 2rem; /* Reduced from 4rem */
  font-family: 'Libre Baskerville', serif;
  position: relative;
  display: inline-block;
  width: 100%;
  clear: both;
  z-index: 10;
  background: transparent !important;
  color: var(--text-color);
}

/* Ensure all sections have transparent backgrounds */
section {
  background: transparent !important;
  background-color: transparent !important;
}

.container, .row, .col-md-6, .col-md-4, .col-12 {
  background: transparent !important;
}

/* Media Queries for responsiveness */
@media (max-width: 768px) {
  html {
    font-size: 55%;
  }

  .personal-content {
    margin-top: 5rem;
    margin-bottom: 3rem; /* Reduced from 8rem */
    padding-bottom: 2rem; /* Reduced from 5rem */
    text-align: center;
    align-items: center;
    min-height: 80vh;
    position: relative;
  }

  .personal-content h1 {
    font-size: 5.5rem;
  }

  .personal-content h3 {
    font-size: 2rem;
  }

  .social-icons a {
    font-size: 4rem;
    margin: 1rem;
  }

  .kr_about {
    font-size: 16px;
  }

  .text-animation {
    font-size: 1.5rem;
  }

  .section-title {
    font-size: 10vw !important;
    margin-top: 2rem; /* Reduced from 6rem */
    margin-bottom: 1.5rem; /* Added for consistency */
  }
}

@media (max-width: 576px) {
  html {
    font-size: 50%;
  }

  .personal-content {
    margin-top: 4rem;
    margin-bottom: 2rem; /* Reduced from 6rem */
    padding-bottom: 1.5rem; /* Reduced from 3rem */
    min-height: 75vh;
    position: relative;
  }

  .personal-content h1 {
    font-size: 4.0rem;
  }

  .personal-content h3 {
    font-size: 3.5rem;
  }

  .personal-content p {
    font-family: "Fira Mono", monospace;
    font-size: 2rem; 
    line-height: 37px;
  }

  .social-icons a {
    font-size: 5.5rem;
    margin: 0.5rem;
  }

  .kr_about {
    font-size: 14px;
  }

  .text-animation {
    font-size: 1.2rem;
  }

  .section-title {
    font-size: 10.5rem;
    margin-top: 2rem; /* Reduced from 5rem */
    margin-bottom: 1rem; /* Added for consistency */
  }
}

@media (max-width: 400px) {
  .section-title {
    font-size: 10vw !important;
  }
}

.hidden {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes textAnimation {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

#headline1, #headline2, #para1 {
  opacity: 0;
  transform: translateY(50px);
}

#headline1.visible {
  animation: fadeIn 1s ease-out forwards;
}

#headline2.visible {
  animation: fadeIn 1.5s ease-out forwards;
}

#para1.visible {
  animation: fadeIn 2s ease-out forwards;
}

#animated-text {
  display: inline-block;
  animation: textAnimation 2s ease-out forwards;
  opacity: 0;
}

/* Ensure all sections use transparent backgrounds */
section, .container, .row {
  background: transparent !important;
}
