html {
    scroll-behavior: smooth;
}
::selection {
    background: rgb(232, 5, 130);
    color: #fff;
}
.typewriter {
    position: relative;
}
.invisible {
    opacity: 0;
    color: gray !important;    
}

.typewritertext-holder {
    position: absolute;
    top: 0;
    z-index: 100;
}
#typewritertext {
    display: inline;
    outline: none;   
}
#typewritertext:focus {
    outline: none; 
}

#cursor {
    display: inline-block;
    width: 1px;
    height: 37px;
    height: clamp(38px, 6vw, 108px);;
    background: rgb(232, 5, 130);
    vertical-align: bottom;
    animation: blink 1s step-start infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
@font-face {
    font-family: 'Termina';
    src: url('/fonts/Termina-Regular.woff2') format('woff2'),
        url('/fonts/Termina-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'Termina';
    src: url('/fonts/Termina-Medium.woff2') format('woff2'),
        url('/fonts/Termina-Memi.woff') format('woff');
    font-weight: 500;
    font-style: normal;
}
@font-face {
    font-family: 'Termina';
    src: url('/fonts/Termina-Demi.woff2') format('woff2'),
        url('/fonts/Termina-Demi.woff') format('woff');
    font-weight: 600;
    font-style: normal;
}
body {
    font-family: 'Termina', sans-serif;
    background-color: #fff;
    color: #3D09E8;
    padding: 0;
}
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    padding: 70px;
    translate: 0 -130px;
    transition: all 0.25s ease;
    z-index: 500;
}
header.visible {
    translate: 0 0;
}

@media (max-width: 768px) {
    header {
        padding: 20px 30px;
        margin-bottom: 0 30px 0 0;
        background-color: rgba(255, 255, 255, 0.8);
        backdrop-filter: blur(2px); 
    }
}
.logo {
    font-size: 20px;
    font-weight: 600;
    color: #3D09E8;
    cursor: pointer;
    text-decoration: none;
}
nav {
    transition: all 0.25s ease;
    padding: 20px;
    border-radius: 30px 0 0 30px;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(2px); 
}
nav a {
    margin-left: 20px;
    text-decoration: none;
    color: #3D09E8;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.25s ease;
}

nav a:hover {
    color: #FF4343;
}
@media (max-width: 768px) {
    nav a {
        margin-left: 10px;
        font-size: 12px;
    }
    nav.transparent {
        opacity: 0;
    }
}

.wrapper {
    display: flex;
    justify-content: center; /* Centers horizontally */
    align-items: center; /* Centers vertically */
    margin: 0; /* Removes default body margin */
    padding: 0 70px;
    flex-direction: column;
}
.full-height {
    min-height: 100vh;
}
@media (max-width: 768px) {
    .wrapper {
        padding: 0 30px;
    }
}
.about-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 50px 0 200px 0;
}
.about p {
    font-size: 32px;
    font-size: clamp(24px, 6vw, 38px);
    margin-bottom: 30px;
}
.about p a {
    font-weight: normal;
    border-bottom: #FF4343 2px solid;
}
.about p a:hover {
    color: #FF4343;
}
@media (max-width: 768px) {
    .about p {
        font-size: 24px;
    }
}
.about nav {
    max-width: 700px;
    margin: 0 auto;
    padding: 50px 0 200px 0;
}
.container {
    max-width: 1400px;
    text-align: left;
}
h1 {
    font-size: 48px;
    font-size: clamp(32px, 6vw, 90px);
    font-weight: 400;
    line-height: 1.2;
}

h1 span {
    color: #FF4343;
}
p {
    font-size: 16px;
    font-size: clamp(14px, 2vw, 24px);
    line-height: 1.38;
}

p a {
    font-weight: 600;
    text-decoration: none;
    color: #3D09E8;
}    
.svg-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}
.svg-button svg {
    width: 172px; 
    height: 172px;
}
@media (max-width: 768px) {
    .svg-button svg {
        width: 120px; 
        height: 120px;
    }
}
.svg-button .rotating {
    animation: spin 7s linear infinite;
    transition: all .25s ease-out;
    transform-origin: 50% 50%;
}
.svg-button:hover .rotating {
    animation-duration: 3s;
    scale: 0.9;
}
.svg-button:active .rotating {
    scale: 0.85;
    transition: none;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}
.subintro {
    display: flex;
    align-items: center;
}
@media (max-width: 768px) {
    .subintro {
        padding-top: 20px;
    }
}
.subintro_copy {
    padding-right: 110px;
    max-width: 940px;
}
@media (max-width: 768px) {
    .subintro_copy {
        padding-right: 20px;
    }
}
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #fff;
    padding: 5px;
    border-radius: 8px;
    width: 90%;
    max-width: 1200px;
    position: relative;
}
.close {
    position: absolute;
    top: -50px;
    right: -50px;
    font-size: 24px;
    cursor: pointer;
    background: #fff;
    height: 50px;
    width: 50px;
    text-align: center;
    border-radius: 30px;
    line-height: 48px;
    transition: ease .2s all;
}
@media (max-width: 768px) {
    .close {
        top: auto;
        right: 50%;
        margin-right: -25px;
        bottom: -40px;
        border: 2px solid #3D09E8;
        line-height: 44px;
    }
}
.close:hover {
    background: #3D09E8;
    color: #fff;
}
iframe {
    width: 100%;
    max-height: 700px;
}
.footer {
    padding: 50px 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    bottom: 0;
    width: 100%;
    translate: 0 100px;
    transition: all 0.25s ease;
}
.footer.visible {
    translate: 0 0;
}
@media (max-width: 768px) {
    .footer {
        padding: 50px 40px;
        position: relative;
        flex-direction: column-reverse;
        gap: 20px;
    }
}
.footer p {
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    padding: 20px;
    transition: all 0.25s ease;
    border-radius: 30px;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(2px); 
}
.footer p:hover {
}
.footer p a {
    text-decoration: none;
    color: inherit;
    font-weight: 500;
}
@media (max-width: 768px) {
    .footer p {
        font-size: 12px;
    }
}
.footer p .divider {
    padding: 0 10px;
}
@media (max-width: 768px) {
    .footer nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        margin-left: 0;
        padding-left: 0;
    }
    .footer nav a {
        margin-left: 0;
    }
    .footer p {
        text-align: center;
    }
    .footer p .divider {
        display: block;
        opacity: 0;
    }
}


.experience-container {
    width: 100%;
}

/* Accordion */

.accordion {
    width: 100%;
    margin-top: 40px;
    margin-bottom: 200px;
}

.accordion-item {
    border-bottom: 1px solid #3D09E8;
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    padding: 30px 0;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    gap: 20px;
    align-items: center;
    font-family: 'Termina', sans-serif;
    font-size: clamp(18px, 3vw, 32px);
    color: #3D09E8;
    transition: color 0.3s ease;
    position: relative;
}

.accordion-header:hover {
    color: #FF4343;
}
.accordion-header:active {
    color: #e12d2d;
}
.accordion-header:hover svg {
    transition: transform 0.3s ease;
}
.accordion-header:hover svg path {
    fill: #FF4343;
    transition: fill 0.3s ease;
}

.accordion-header .title {
    font-weight: 400;
    font-size: clamp(18px, 3vw, 30px);
    text-transform: uppercase;
}

.accordion-header .year,
.accordion-header .role {
    text-transform: uppercase;
    font-size: 14px;
}

.accordion-header svg {
    transition: none;
    margin-left: auto;
}

.accordion-item.active .accordion-header svg {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding-left: 0;
    padding-right: 0;
}

.accordion-content p {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    transition-delay: 0.1s;
    padding-bottom: 30px;
    font-size: 16px;
    max-width: 800px;
}

.accordion-item.active .accordion-content {
    max-height: 300px;
}

.accordion-item.active .accordion-content p {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .accordion-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .accordion-header svg {
        position: absolute;
        top: 30px;
        right: 0;
    }
}

/* Three.js canvas styles */
canvas {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
    pointer-events: none;
    width: 100%;
    height: 100%;
}

/* Hover effect styles */
.hover-effect {
  font-kerning: none;
  position: relative;
  white-space: nowrap;
  display: inline-block;
}

.hover-effect .word {
  white-space: nowrap;
  display: inline-block;
}

.hover-effect .char {
  position: relative;
  display: inline-block;
  text-align: center;
}

:root {
  --color-bg-effect: white;
  --blendmode-effect: difference;
  --bg-blur: 0px;
}

/* Random character animation colors */
.hover-effect-colors {
  --color1: #3D09E8;
  --color2: #FF4343;
  --color3: #000000;
  --color4: #717781;
}

/* For text splitting - ensure no layout shifts */
.word, .char {
  display: inline-block;
}

/* Work Section Styles */
.work-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 50px 0 50px 0;
}

.work-container h2 {
    font-size: clamp(24px, 6vw, 38px);
    margin-bottom: 40px;
    font-weight: 400;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-bottom: 50px;
}

.project-card {
    text-decoration: none;
    color: #3D09E8;
    transition: all 0.3s ease;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-image {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 20px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.project-card:hover .project-image img {
    transform: scale(0.95);
    cursor: pointer;
}

.project-info h3 {
    font-size: clamp(18px, 3vw, 24px);
    font-weight: 400;
    margin-bottom: 8px;
}

.project-info p {
    font-size: 14px;
    color: #717781;
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .work-container {
        padding: 30px 0 100px 0;
    }
}

/* Project Page Styles */
.project-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.project-header {
    margin-bottom: 60px;
}

.project-header h1 {
    margin-bottom: 20px;
}


.project-content {
    display: flex;
    flex-direction: column;
}
.project-content img{
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.project-image-full {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
}

.project-image-full img {
    width: 100%;
    height: auto;
    display: block;
}
.project-container h1 {
    font-size: clamp(32px, 4vw, 72px);
    margin-bottom: 120px;
    font-weight: 600;
}
.project-container h2 {
    font-size: clamp(24px, 4vw, 32px);
    margin-bottom: 50px;
    font-weight: 600;
}
.project-container h2 span {
    font-size: 10px;
    display: block;
}

.project-container p {
    margin-bottom: 40px;
    font-size: 18px;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .project-container {
        padding: 30px 0 100px 0;
    }
    
    .project-header {
        margin-bottom: 40px;
    }
    
    .project-description p {
        font-size: 16px;
        margin-bottom: 30px;
    }
}
.definition-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 50px;
}
@media (max-width: 1100px) {
    .definition-list {
        grid-template-columns: 1fr;
    }
}
.definition-list dt {
    font-weight: 600;
    border-top: 1px solid #3D09E8;
    padding-top: 30px;
    padding-right: 30px;
    padding-bottom: 30px;
}
.definition-list dd {
    border-top: 1px solid #3D09E8;
    padding-top: 30px;
    padding-bottom: 30px;
    line-height: 1.5;
}
@media (max-width: 1100px) {
    .definition-list dd {
        border-top: none;
        padding-top: 0;
    }
}
.list-symple li {
    margin-bottom: 10px;
    line-height: 1.5;
}
.pt-100 {
    padding-top: 100px;
}
.pt-200 {
    padding-top: 200px;
}
.pb-100 {
    padding-bottom: 100px;
}
.mb-50 {
    margin-bottom: 50px;
}
.mb-100 {
    margin-bottom: 100px;
}
.mb-200 {
    margin-bottom: 200px;
}
.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

@media (max-width: 1100px) {
    .grid-2-col {
        grid-template-columns: 1fr;
        gap: 0;
    }
}
.grid-4-col {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 40px;
}
@media (max-width: 1100px) {
    .grid-4-col {
        grid-template-columns: 1fr;
        gap: 0;
    }
}
.br-top {
    border-radius: 10px 10px 0 0;
}
.br-bottom {
    border-radius: 0 0 10px 10px;
}
.grid-2-col-item {
    padding-right: 40px;
}
.grid-4-col .grid-2-col-item-center {
    grid-column-start: 2;
    grid-column-end: 4;
}
.bg-blue1 {
    background-color: #3B63E5;
    color: #fff;
}