@font-face {
    font-family: 'Apoc Display';
    src: url('font/Apoc Display Revelations.ttf') format('truetype');
}

* {
    margin: 0em;
    padding: 0;
    box-sizing: border-box;
    position: relative;
}

body {
    background-color: #212121;
    color: #D9D9D9;
    font-family: 'Apoc Display', serif;
    line-height: 1.6;
    overflow-x: hidden;
}

@supports (animation-timeline: scroll()) {
    h1 {
        animation-timeline: scroll();
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2vw 1vw;
    position:relative;
}

header {
    text-align: center;
    
    
}

.marginfix {
    margin: 0.5em;
}

@keyframes glowMotion {
    0% { text-shadow: 0 0 23.5px rgba(135, 189, 255, 0.8); }
    50% { text-shadow: 0 0 30px rgba(135, 189, 255, 0.6); }
    100% { text-shadow: 0 0 23.5px rgba(135, 189, 255, 0.8); }
}

.glow-effect {
    text-shadow: 0 0 22.5px rgba(135, 189, 255, 0.5);
    will-change: text-shadow;
}

h1 {
    font-size: 1.863rem;
    font-weight: 300;
    letter-spacing: 0em;   
    margin-bottom: 1em;
    text-wrap: nowrap;
    transform: scale(1,2, 1.2);
    
}

.balls {
    width: 1.5rem;
    height: auto;
    vertical-align: middle;
    margin: 0 0.2rem;
    border-radius: 50%;
 
}


.circle {
  display: inline-block;
  width: 1.5rem;
  height: 0.4rem;
  border: 0.01em solid #ffffff;
  border-radius: 50%;
  vertical-align: middle;
  margin: 0 0.5rem;
  animation: pulse 10s ease-in-out infinite;
}


.circular-fade-edges {
  mask-image: radial-gradient(circle, black 40%, transparent 90%);
  -webkit-mask-image: radial-gradient(circle, black 50%, transparent 90%);
}

@keyframes pulse {
  0%, 100% {
    height: 0.01rem;
  }
  50% {
    height: 0.7rem;
  }
}


.diagram-section {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1px 0;
    min-height: 100px;
    padding: 1px 0;
   
}

.diagram-wrapper {
    position: relative;
    width: 30em;
    max-width: 30em;
    height: 30em;
    margin: 0 auto;
}

.profile-wrapper {
    position: relative;
    width: 20em;
    max-width: 20em;
    height: 20em;
    margin: 2em auto;
}

.profile-image {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    position: relative;
}


.dots-diagram {
    display: block;
    width: 100%;
    max-width: 442px;
    margin: 0 auto;
    transform-origin: center center;
    position: relative;
    z-index: 1;
}



.bio {
    text-align: left;
    position: relative;
    margin-bottom: 3em;
    margin-top: 3em;
    line-height: auto
}

.label {
    position: absolute;
    font-size: clamp(0.7rem, 1.3vw, 0.6rem);
    margin-top: -20px;
    white-space: nowrap;
    font-weight: 100;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(1, 1.3);
    text-shadow: 0 0 5.5px rgba(135, 189, 255, 0.8);
    line-height: 0.7;
    opacity: 0.8;
    z-index: 2;
}


h2 {
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    font-weight: 300;
    margin-bottom: 20px;
    padding-bottom: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transform: scale(1, 1.2);
    

    
}

h2::after {
    content: 'λ';
    font-size: 1.5rem;
    opacity: 0.6;
    transition: transform 0.7s ease;
    
}

h2.active::after {
    transform: rotate(180deg);
}

.collapsible-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.8s ease-out, opacity 0.5s ease-out;
    opacity: 0;
    
}

.collapsible-content.active {
    max-height: 1000px;
    opacity: 1;
    transition: all 0.6s ease-in;
}


h3 {
    font-size: clamp(1.2rem, 2.6vw, 1.4rem);
    font-weight: 300;
    margin-top: 30px;
    margin-bottom: 15px;
}

p, li {
    font-size: 1.3rem;  
    margin-bottom: 12px;
    font-weight: 300;
    transform:scale(1, 1.1);
}



ul {
    list-style: none;
    padding-left: 0;
}

li {
    padding-left: 0;
    margin-bottom: 8px;
}

.note {
    font-size: clamp(0.75rem, 1.5vw, 0.85rem);
    font-style: italic;
    opacity: 0.7;
    margin-top: 10px;
}

/* Link styles */
.video-link {
    color: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.video-link::after {
    content: '↗︎';
    display: inline-block;
    margin-left: 4px;
    font-size: 0.9em;
    opacity: 0.4;
}

.external-link {
    color: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.external-link::after {
    content: '↗︎';
    display: inline-block;
    margin-left: 4px;
    font-size: 0.9em;
    opacity: 0.8;
}

/* Modal styles */
.modal {
    visibility: hidden;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    opacity: 0;
    pointer-events: none;
    display: flex;
    transition: opacity 0.3s ease,
                visibility 0s 0.3s;
}

.modal.show {
    visibility: visible;
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.9);
    pointer-events: auto;
    transition: opacity 0.3s ease,
                visibility 0s;
}

.modal-content {
    position: relative;
    margin: auto;
    width: 90%;
    max-width: 800px;
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal.show .modal-content {
    transform: translateX(0);
}

.modal video {
    max-width: 100%;
    max-height: 80vh;
    background: #000;
}

.close-modal {
    position: absolute;
    right: -40px;
    top: -40px;
    color: #fff;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

#modalVideo {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 932px) {
    .phoned {
        transform: scale(calc(0.5 + (100vw - 320px) / (932px - 320px) * 1.3));
        transform-origin: center center;
        
    }

   h1 {
    text-align: center;
    letter-spacing: 0.3em;  
    text-wrap: wrap;
    overflow-wrap: break-word;
    font-size: 1.463rem;
    text-transform: uppercase;
    margin-top: 0em;
    transform: scale(1.1, 2.2);
    transform-origin: top center;
    line-height: 0.8;
}

    .circle {
        display: none;  
    }

    .diagram-wrapper {
        margin-top: 5em;
        margin-bottom: -5em;
    
    }

    .label {
    position: absolute;
    font-size: clamp(0.8rem, 1.4vw, 0.8rem);
    margin-top: -30px;
    white-space: nowrap;
    font-weight: 100;
    pointer-events: none;
    transform: translate(-60%, -50%) scale(1, 2.2);
    text-shadow: 0 0 5.5px rgba(135, 189, 255, 0.8);
    opacity: 0.8;
    letter-spacing: 0.3em;  
    z-index: 2;
}
    
}