/* --- Scroll Snap Styles --- */
@import url('https://fonts.googleapis.com/css?family=Fira+Mono:400');

html {
  scroll-snap-type: y mandatory;
  overflow-y: scroll;
  height: 100%;
}

body { 
  margin: 0;
  padding: 0;
  background: #131313;
  color: #fff;
  font-family: 'Fira Mono', monospace;
}

.page-section {
  height: 100vh;
  width: 100vw;
  display: flex;
  align-items: center;
  justify-content: center;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.error-404 {
  font-size: 96px;
  letter-spacing: -7px;
  animation: glitch 1s linear infinite;
}

@keyframes glitch{
  2%,64%{
    transform: translate(2px,0) skew(0deg);
  }
  4%,60%{
    transform: translate(-2px,0) skew(0deg);
  }
  62%{
    transform: translate(0,0) skew(5deg); 
  }
}

.error-404:before,
.error-404:after{
  content: attr(title);
  position: absolute;
  left: 0;
}

.error-404:before{
  animation: glitchTop 1s linear infinite;
  clip-path: polygon(0 0, 100% 0, 100% 33%, 0 33%);
  -webkit-clip-path: polygon(0 0, 100% 0, 100% 33%, 0 33%);
}

@keyframes glitchTop{
  2%,64%{
    transform: translate(2px,-2px);
  }
  4%,60%{
    transform: translate(-2px,2px);
  }
  62%{
    transform: translate(13px,-1px) skew(-13deg); 
  }
}

.error-404:after{
  animation: glitchBotom 1.5s linear infinite;
  clip-path: polygon(0 67%, 100% 67%, 100% 100%, 0 100%);
  -webkit-clip-path: polygon(0 67%, 100% 67%, 100% 100%, 0 100%);
}

@keyframes glitchBotom{
  2%,64%{
    transform: translate(-2px,0);
  }
  4%,60%{
    transform: translate(-2px,0);
  }
  62%{
    transform: translate(-22px,5px) skew(21deg); 
  }
}

/* --- Text Scramble Styles --- */
@import 'https://fonts.googleapis.com/css?family=Roboto+Mono:100';







/* --- Core Styles --- */
body {
                margin: 0;
                padding: 0;
                font-family: sans-serif;
                overflow-x: hidden;
            }
            
            /* Snap scrolling container */
            .snap-container {
                height: 100vh;
                overflow-y: scroll;
                scroll-snap-type: y mandatory;
                scroll-behavior: smooth;
            }
            
            /* Each section takes full viewport height and snaps */
            .section {
                height: 100vh;
                scroll-snap-align: start;
                position: relative;
                width: 100%;
            }
            
            #gradient-canvas {
                --gradient-color-1: #6ec3f4;
                --gradient-color-2: #3a3aff;
                --gradient-color-3: #ff61ab;
                --gradient-color-4: #E63946;
                width: 100%;
                height: 100%;
                display: block;
                position: fixed; /* Fixed to cover all sections */
                top: 0;
                left: 0;
                z-index: 0;
            }

            /* Main section content styling */
            .section-content {
                position: absolute;
                top: 50%;
                left: 50%;
                transform: translate(-50%, -50%);
                color: white;
                text-align: center;
                z-index: 1;
                width: 80%;
                max-width: 800px;
            }

            /* Home section styling */
            #overlay-text {
                color: white;
                text-align: center;
                z-index: 1;
                pointer-events: none; /* makes sure mouse/touch pass through */
                opacity: 0.9; /* makes text slightly transparent if you want */
            }

            #overlay-text h1 {
                font-size: 6em;
                margin: 0;
            }

            #overlay-text p {
                font-size: 1.2em;
                margin: 0.5em 0 0;
                opacity: 0; /* Start with paragraphs invisible */
                transition: opacity 1.5s ease; /* Add transition for smooth fade-in */
            }
            
            /* HR styling */
            #divider {
                width: 0; /* Start with 0 width */
                max-width: 120px; /* Maximum width of the hr */
                margin: 25px auto; /* Increased margin from 15px to 25px */
                border: 0;
                height: 1px;
                background-color: rgba(255, 255, 255, 0.8);
                transition: width 1s ease; /* Transition for hr width animation */
            }
            
            /* When this class is added, hr will expand */
            .expand-hr {
                width: 100% !important; /* Expands to full width (limited by max-width) */
            }
            
            /* When this class is added, paragraphs will fade in */
            .fade-in {
                opacity: 1 !important;
            }
            
            /* Add a blinking cursor effect for the typing animation */
            .typing-cursor::after {
                content: '|';
                animation: blink 1s step-end infinite;
            }
            
            @keyframes blink {
                from, to { opacity: 1; }
                50% { opacity: 0; }
            }
            
            /* Text Scramble styling */
            
.scramble-container {
  justify-content: center;
  align-items: center;
  display: flex;
  margin-top: 40px;
  height: 40px; /* Prevent layout shift */
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease, visibility 1s ease;
}

.scramble-container.visible {
  opacity: 1;
  visibility: visible;
}

            
            .text {
                font-family: 'Roboto Mono', monospace;
                font-weight: 300;
                font-size: 28px;
                color: #FAFAFA;
            }
            
            .dud {
                color: #757575;
            }
            
            /* Profile photo styles */
            .profile-container {
                margin-bottom: 20px; /* Space between photo and text */
                width: 150px; /* Size of the image container */
                height: 150px; /* Size of the image container */
                margin-left: auto;
                margin-right: auto;
                opacity: 0; /* Start hidden */
            }
            
            .profile-photo {
                width: 100%;
                height: 100%;
                border-radius: 50%; /* Make it circular */
                object-fit: cover; /* Maintain aspect ratio and fill container */
                border: 3px solid white; /* White border */
                box-shadow: 0 0 10px rgba(0,0,0,0.3); /* Subtle shadow */
            }
            
            /* Rotate in animation */
            @keyframes rotate-in-center {
                0% { 
                    transform: rotate(-30deg); 
                    opacity: 0; 
                } 
                100% { 
                    transform: rotate(0); 
                    opacity: 1;
                }
            }
            
            .rotate-in-center { 
                animation: rotate-in-center 0.6s cubic-bezier(0.250, 0.460, 0.450, 0.940) 0s 1 normal both; 
            }
            
            /* Contact section styling */
            .contact-divider, .about-divider {
                width: 120px;
                margin: 25px auto;
                border: 0;
                height: 1px;
                background-color: rgba(255, 255, 255, 0.8);
            }
            
            .contact-links {
                display: flex;
                flex-direction: row;
                flex-wrap: wrap;
                justify-content: center;
                gap: 30px;
                margin-top: 30px;
                padding-top: 10px;
            }
            
            .contact-link {
                color: white;
                text-decoration: none;
                font-size: 1.4em;
                display: flex;
                align-items: center;
                gap: 10px;
                padding: 5px;
            }
            
            .contact-link:visited {
                color: white;
            }
            
            .contact-icon {
                width: 24px;
                height: 24px;
                fill: white;
                margin-right: 5px;
            }
            
            /* Scroll down indicator */
            .scroll-down {
                position: absolute;
                bottom: 30px;
                left: 50%;
                transform: translateX(-50%);
                color: white;
                font-size: 14px;
                opacity: 0;
                transition: opacity 2s ease;
                cursor: pointer;
                z-index: 10;
                text-align: center;
            }
            
            .scroll-down.visible {
                opacity: 0.8;
            }
            
            .scroll-arrow {
                display: block;
                font-size: 24px;
                animation: bounce 2s infinite;
                margin-top: 5px;
            }
            
            @keyframes bounce {
                0%, 20%, 50%, 80%, 100% {
                    transform: translateY(0);
                }
                40% {
                    transform: translateY(-10px);
                }
                60% {
                    transform: translateY(-5px);
                }
            }
            
            /* Additional section styling */
            .section h2 {
                font-size: 5em;
                margin-bottom: 20px;
                opacity: 0;
                transform: translateY(20px);
                transition: opacity 0.8s ease, transform 0.8s ease;
            }
            
            .section p {
                font-size: 1.2em;
                line-height: 1.7;
                margin-bottom: 25px;
                opacity: 0;
                transform: translateY(20px);
                transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s;
            }
            
            .section.active h2,
            .section.active p {
                opacity: 1;
                transform: translateY(0);
            }
            
            /* For the sections after the first one */
            .section-content {
                padding: 30px;
            }
            
            /* Navigation dots */
            .section-nav {
                position: fixed;
                right: 20px;
                top: 50%;
                transform: translateY(-50%);
                z-index: 100;
                display: flex;
                flex-direction: column;
                gap: 15px;
            }
            
            .section-dot {
                width: 12px;
                height: 12px;
                border-radius: 50%;
                background-color: rgba(255, 255, 255, 0.5);
                cursor: pointer;
                transition: transform 0.3s ease, background-color 0.3s ease;
            }
            
            .section-dot.active {
                background-color: white;
                transform: scale(1.3);
            }
            
            /* Rotating text animation styles - FIXED VERSION */
            .contact-text-animation {
                position: relative;
                width: 100%;
                height: 80px; /* Increased height */
                margin: 30px auto;
                text-align: center;
                perspective: 1000px;
            }

            /* Container for static text */
            .static-text {
                position: absolute;
                top: 50%;
                left: 50%;
                transform: translate(-50%, -50%);
                text-align: right;
                width: 100px; /* Fixed width */
            }

            .static-text p {
                display: inline-block;
                vertical-align: middle;
                margin: 0;
                font-size: 30px;
                line-height: 40px;
            }

            /* Container for animated words */
            .word-container {
                position: absolute;
                top: 50%;
                left: 50%;
                width: 250px; /* Fixed width */
                height: 40px; /* Fixed height */
                transform: translate(-50px, -50%); /* Adjust position */
                text-align: left;
                overflow: hidden;
            }

            .word {
                position: absolute;
                opacity: 0;
                left: 0;
                top: 0;
                width: 100%;
                height: 100%;
            }

            .letter {
                display: inline-block;
                position: relative;
                float: left;
                transform: translateZ(25px);
                transform-origin: 50% 50% 25px;
            }

            .letter.out {
                transform: rotateX(90deg);
                transition: transform 0.32s cubic-bezier(0.55, 0.055, 0.675, 0.19);
            }

            .letter.behind {
                transform: rotateX(-90deg);
            }

            .letter.in {
                transform: rotateX(0deg);
                transition: transform 0.38s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            }

            .blue {
                color: #6ec3f4;
            }

            .purple {
                color: #3a3aff;
            }

            .pink {
                color: #ff61ab;
            }

            .red {
                color: #E63946;
            }

            .white {
                color: #ffffff;
            }
            
            /* Added spacing for contact section */
            .contact-spacing {
                height: 30px;
                width: 100%;
            }
            
            /* Header spacing for contact section */
            .header-spacing {
                height: 30px;
                width: 100%;
            }

/* made with love by Brian Twomey <3 */
