@import url('https://fonts.googleapis.com/css2?family=Petrona:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Imperial+Script&display=swap');

:root {
    --bg-primary: #1a1614;      
    --bg-header: #0d0b0a;        
    --text-main: #e6e1d6;      
    --text-light: #f5f2eb;       
    --accent: #cda45e;           
    --accent-hover: #b08d55;     
    --blockquote-bg: #241e1b;    
    --border-color: #3e3228;     
    --card-bg: #241e1b;
}

html {
    scroll-behavior: smooth;
}

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

body{
    background-color: var(--bg-primary);
    font-family: "Petrona",serif;
    font-weight: 500;
    color: var(--text-main);
}

li, .nav__links__a, button{
    font-family: "Petrona", serif;
    font-weight: 500;
    font-size: 14px;
    color: var(--text-main);
    text-decoration: none;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 10%;
    background-color: var(--bg-header);
    border-bottom: 3px var(--accent) solid;
    margin: 0;
    font-family: "Petrona",serif;
    font-weight: 500;
    color: var(--text-main);
    width: 100%;
    position: fixed;
    z-index: 15;
}

.branding {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background-color: var(--bg-header);
}

.top-nav-h2 {
    font-family: "Petrona", serif; 
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 400;
    color: var(--accent);
    display: block;
    margin-bottom: 5px;
    background-color: var(--bg-header);
}

.top-nav-h1 {
    font-family: "Petrona", serif;
    font-size: 2rem; 
    font-weight: 700;
    color: var(--text-light);
    line-height: 1; 
    margin: 0;
    background-color: var(--bg-header);
}

.top-nav-h1:hover {
    font-family: "Petrona", serif;
    font-size: 2rem; 
    font-weight: 700;
    color: var(--accent);
    line-height: 1; 
    margin: 0; 
    text-decoration: underline;
}

.nav__links{
    list-style: none;
    background-color: var(--bg-header);
}
.nav__links li{
    display: inline-block;
    padding: 0px 20px;
}
.nav__links li a{
    transition: all 0.3s ease 0s;
}

.nav__links li a:hover{
    color: var(--accent);
}

button{
    padding: 9px 25px;
    background-color: var(--accent);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease 0s;
    color: var(--bg-header);
    font-weight: bold;
}

button:hover{
    background-color: var(--accent-hover);
}

main{
    background-color: var(--bg-primary);
    color: var(--text-main);
}

.hero{
    background-size: cover; 
    background-color: var(--bg-primary); 
    background-image: url(../images/home_background_image.png);
    margin: 0;
    padding-top: 180px;
    padding-bottom: 180px;
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.blockquote{
    max-width: 600px;
    margin: 10px 30px;
    padding: 25px;
    background-color: var(--blockquote-bg);
    border: 1px solid var(--accent);
    color: var(--text-main);
    box-sizing: border-box;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.blockquote__text{
    font-family: "Imperial+Script", serif;
    font-style: italic;
    font-size: 1.15em;
    line-height: 1.5;
    margin: 0;
}

.blockquote__text:not(:last-child){
    margin-bottom: 1em;
}

.blockquote--bordered{
    border-left: 5px solid var(--accent);
}

.blockquote__text--credit{
    font-weight: bold;
    font-style: normal;
    text-align: right;
    color: var(--accent);
}

.blockquote__text--credit::before{
    content: "\2014\0020";
}

p::first-letter {
  color: var(--accent);
  font-size: 1.5em;
  text-transform: uppercase;
}

.blockquote--quoted::before{
    content: "\201c";
    font-size: 120px;
    color: var(--accent);
    opacity: 0.3;
    display: block;
    margin-bottom: -80px;
    margin-top: -20px;
}

.eyebrow{
    font-size: 2em;
    font-style: bold;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--accent);
}

.nose, .section__intro{
    font-size: 1.5em;
    font-style: italic;
    text-decoration: underline;
    text-align: center;
    color: var(--text-main);
}

.hero-prpr{
    max-width: 500px;
    margin: 10px 30px;
    padding: 25px;
    border: 1px solid var(--accent);
    border-radius: 20px;
    background-color: rgba(13, 11, 10, 0.8);
}

.hr-text{
    color: var(--accent);
    margin-top: 100px;
    border: none;
    position: relative;
    text-align: center;
    font-size: 5em;
    font-family: "Imperial+Script", serif;
}

.hr-text::before{
    background: linear-gradient(to right, transparent, var(--accent), transparent);
    content: "";
    position: absolute;
    height: 1px;
    width: 100%;
    left: 0;
    top: 50%;
}

.hr-text::after{
    content: attr(data-content);
    position: relative;
    background: var(--bg-primary);
    padding: 0 15px;
}


.carousel{
    margin: 100px auto;
    width: 90%;
    display: flex;
    overflow-x:auto;
}

.carousel::-webkit-scrollbar{
    display: none;
}

.group{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1em;
    animation: spin 5s infinite linear;
    padding-right: 1em;
}

.card{
    flex: 0 0 5em;
    height: 5em;
    padding: 1em;
    background: rgba(255, 255, 255, 0.1);
    font-size: 3rem;
    border-radius: .2em;
    text-align: center;
    align-content: center;
    border: 1px solid var(--border-color);
}

@keyframes spin{
    from {translate: 0;}
    to{translate: -100%;}
}
.card1{
    background-size: cover; 
    background-image: url(../images/dragon_1.png);
}
.card2{
    background-size: cover; 
    background-image: url(../images/dragon_2.png);
}
.card3{
    background-size: cover; 
    background-image: url(../images/dragon_3.png);
}
.card4{
    background-size: cover; 
    background-image: url(../images/dragon_4.png);
}
.card5{
    background-size: cover; 
    background-image: url(../images/dragon_5.png);
}
.card6{
    background-size: cover; 
    background-image: url(../images/dragon_6.png);
}

.card:hover{
    background-blend-mode: lighten;
    background-color: rgba(205, 164, 94, 0.2);
    cursor: pointer;
    border-color: var(--accent);
}

.heading__books__section, .section__title{
    text-align: center;
    font-size: 5em;
    font-family: "Imperial+Script", cursive;
    text-decoration: none;
    color: var(--accent);
    margin-bottom: 0.5em;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.grid-container{
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 2em;
    margin: 3em;
    justify-content: center;
    align-content: center;
}

.item{
    padding: 2em;
    background-color: var(--blockquote-bg);
    color: var(--text-main);
    text-align: center;
    border-radius: 4px;
    font-size: 1.2rem; 
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.item:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.f__books__text--credit{
    text-align: right;
    color: var(--accent);
    text-transform: uppercase;
    font-size: 1rem;
    margin-top: 15px;
    letter-spacing: 1px;
}
.f__books__text--credit::before{
    content: "\2014\0020";
}
.f__books_summary::first-letter{
    font-size: 2em;
    color: var(--accent);
    float: left;
    margin-right: 5px;
    line-height: 1;
}
.h2__books_title, .h2__timeline__heading{
    color: var(--accent);
    font-family: "Petrona", serif;
    margin-bottom: 15px;
    font-size: 1.5em;
}

.project__grid{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    margin: 4em auto;
    max-width: 1200px;
    gap: 2.5em;
    padding: 0 2em;
}

.project__card{
    padding: 2.5em;
    background-color: var(--blockquote-bg);
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
    border-radius: 15px;
    font-size: 1.1rem; 
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.project__card:hover {
    transform: translateY(-10px);
    transform: scale(1.05);
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

a.btn__inspect{
    display: inline-block;
    margin-top: 1.5em;
    padding: 12px 25px;
    border-radius: 8px;
    border: 2px solid var(--accent);
    background-color: var(--accent);
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    color: var(--bg-header);
    transition: all 0.3s ease;
}

a.btn__inspect:hover{
    background-color: transparent;
    color: var(--accent);
}

.tag{
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
}

.lab__image{
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    margin: 1.5em 0;
    border: 1px solid var(--border-color);
}



.affinities__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 4em;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2em;
}

.heading__group__fire, .heading__group__water {
    text-align: center;
    font-family: "Imperial Script", serif;
    font-size: 2.5em;
    margin-bottom: 0.8em;
}

.heading__group__fire { 
    color: #d65d45; 
    text-shadow: 0 0 10px rgba(214, 93, 69, 0.2); 
}

.heading__group__water { 
    color: #5d9cbd; 
    text-shadow: 0 0 10px rgba(93, 156, 189, 0.2); 
}

.skill_name {
    display: block;
    margin-bottom: 8px;
    font-family: "Petrona", serif;
    font-weight: bold;
    color: var(--accent);
    font-size: 1.1em;
}

.skills-container {
    width: 100%;
    background-color: var(--bg-header);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    height: 28px;
    margin-bottom: 25px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.5);
}

.skills {
    height: 100%;
    text-align: right;
    padding-right: 12px;
    line-height: 28px;
    color: #1a1614; 
    font-weight: bold;
    font-size: 0.9rem;
    border-radius: 0 10px 10px 0;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.python { 
    background: linear-gradient(90deg, #8a3b28, #d65d45); 
    animation-name: fill__python;
    animation-duration: 30s;
    max-width: 95%;
    animation-timing-function: ease;
}
.node_js {  
    background: linear-gradient(90deg, #6e3a2b, #b04e38);
    animation-name: fill__node_js;
    animation-duration: 15s; 
    max-width: 85%;
    animation-timing-function: ease;
} 
.react { 
    width: 95%; 
    background: linear-gradient(90deg, #3d6382, #5d9cbd);
    max-width: 95%; 
    animation-name: fill__react;
    animation-duration: 25s;
    max-width: 95%;
    animation-timing-function: ease-in-out;
} 
.css { 
    background: linear-gradient(90deg, #2b4861, #4e7da6);
    max-width: 88%; 
    animation-name: fill__css;
    animation-duration: 22s;
    animation-timing-function: ease-in;
} 


@keyframes fill__python{
    0%{
        width: 19%;
    }
    25%{
        width: 38%;
    }
    50%{    
        width: 57%;
    }
    75%{
        width: 76%;
    }
    100%{
        width: 95%;
    }
}

@keyframes fill__node_js{
    0%{
        width: 19%;
    }
    25%{
        width: 38%;
    }
    50%{    
        width: 53%;
    }
    75%{
        width: 70%;
    }
    100%{
        width: 85%;
    }
}

@keyframes fill__react{
    0%{
        width: 19%;
    }
    25%{
        width: 38%;
    }
    50%{    
        width: 57%;
    }
    75%{
        width: 76%;
    }
    100%{
        width: 95%;
    }
}

@keyframes fill__css{
    0%{
        width: 19%;
    }
    25%{
        width: 38%;
    }
    50%{    
        width: 50%;
    }
    75%{
        width: 73%;
    }
    100%{
        width: 88%;
    }
}


.timeline{
    position: relative;
    max-width: 1200px;
    margin: 100px auto;
}

.container{
    padding: 10px 50px;
    position: relative;
    width: 50%;
    background-color: var(--bg-primary);
    animation: movedown 1s linear forwards;
    opacity: 0;
}

@keyframes movedown{
    0%{
        opacity: 1;
        transform: translateY(-30px);
    }
    100%{
        opacity: 1;
        transform: translateY(0px);
    }
}
.container:nth-child(1){
    animation-delay: 0s;
}
.container:nth-child(2){
    animation-delay: 1s;
}
.container:nth-child(3){
    animation-delay: 2s;
}
.container:nth-child(4){
    animation-delay: 3s;
}
.container:nth-child(5){
    animation-delay: 4s;
}
.container:nth-child(6){
    animation-delay: 5s;
}

.text__box__cont{
    padding: 20px 30px ;
    background-color: var(--border-color);
    position: relative;
    border-radius: 6px;
    font-size: 15px;
}

.right__container{
    left: 50%;
}

.left__container{
    left: 0;
}

.container img{
    position: absolute;
    width: 40px;
    border-radius: 50%;
    right: -20px;
    top: 32px;
    z-index: 10;
}
.right__container img{
    left: -20px;
}

.timeline::after{
    content: '';
    position: absolute;
    width: 6px;
    height: 100%;
    background: var(--accent) ;
    top: 0;
    left: 50%;
    margin-left: -3px; 
    z-index: 1;
    animation: moveline 6s linear forwards;
}
@keyframes moveline{
    0%{
        height: 0;
    }
    100%{
        height: 100%;
    }
}

.p__timeline{
    font-size: 20px;
    text-align: left;
    word-spacing: normal;
}

.text__box__cont small{
    display: inline-block;
    margin-bottom: 15px;
}

.left__container__arrow{
    height: 0;
    width: 0;
    position: absolute;
    top: 28px;
    z-index: 1;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 15px solid;
    border-left-color: var(--accent);
    right: -15px;
}


.right__container__arrow{
    height: 0;
    width: 0;
    position: absolute;
    top: 28px;
    z-index: 1;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-right: 15px solid;
    border-right-color: var(--accent);
    left: -15px;
}

@media  screen and (max-width:600px) {
    .timeline{
        margin: 50px auto;
    }
    .timeline::after{
        left: 31px;
    }
    .container{
        width: 100%;
        padding-left: 80px;
        padding-right: 25px;
    }
    .text__box__cont{
        font-size: 13px;  
    }
    .text__box__cont small{
        margin-bottom: 10px;
    }
    .right__container{
        left: 0;
    }
    .left__container img, .right__container img{
        left: 10px;
    }
    .left__container__arrow, .right__container__arrow{
        border-right: 15px solid;
        border-right-color: var(--accent);
        border-left: 0;
        left: -15px;
    }
}

.summoning__portal{
    background-size: cover; 
    background-color: var(--bg-primary); 
    margin: 0;
    padding-bottom: 100px;
   
    background: radial-gradient(circle at center, #1a1614 0%, #0d0b0a 100%);
    position: relative;
    overflow: hidden;
}


.portal-instruction {
    text-align: center;
    margin-bottom: 20px;
    font-family: "Petrona", serif;
    color: var(--accent);
    font-size: 1.2rem;
    animation: pulseText 2s infinite ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.arrow {
    font-size: 1.5rem;
    font-weight: bold;
}

@keyframes pulseText {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}


.circle:hover{
    cursor: pointer;
    transform: translateY(-30px);
    background-blend-mode: multiply;
}


.portal-toggle {
    display: none;
}

.parent {
  display: grid;
  place-items: center;
  position: relative;
  margin: 0 auto;
  width: 800px;
  height: 800px;
  cursor: pointer; 
}

.circle {
  grid-area: 1 / 1;
  position: relative;
  border-radius: 50%;
  height: 500px;
  width: 500px;
  z-index: 2;
  transition: transform 0.3s ease;
}

.portal__border {
  grid-area: 1 / 1;
  position: relative;
  height: 800px;
  width: 800px;
  z-index: 1;
  border-radius: 48%;
  pointer-events: none; 
}

.parent:hover .circle {
    transform: scale(1.05);
    filter: drop-shadow(0 0 15px var(--accent));
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    backdrop-filter: blur(5px);
}

#portal-toggle:checked ~ .modal-overlay {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: var(--bg-primary);
    border: 2px solid var(--accent);
    padding: 40px;
    width: 90%;
    max-width: 500px;
    border-radius: 15px;
    position: relative;
    box-shadow: 0 0 30px rgba(205, 164, 94, 0.2);
    transform: scale(0.8);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0IiBoZWlnaHQ9IjQiPgo8cmVjdCB3aWR0aD0iNCIgaGVpZ2h0PSI0IiBmaWxsPSIjMWExNjE0Ii8+CjxyZWN0IHdpZHRoPSIxIiBoZWlnaHQ9IjEiIGZpbGw9IiMyNDFlMWIiLz4KPC9zdmc+'); /* Subtle pattern */
}

#portal-toggle:checked ~ .modal-overlay .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: var(--accent);
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
}

.modal-close:hover {
    color: var(--text-light);
}

.modal-title {
    font-family: "Imperial Script", cursive;
    color: var(--accent);
    font-size: 3rem;
    text-align: center;
    margin-bottom: 0.2em;
}

.modal-subtitle {
    text-align: center;
    margin-bottom: 2em;
    font-style: italic;
    color: var(--text-main);
}

.input-group {
    margin-bottom: 1.5em;
}

.input-group label {
    display: block;
    margin-bottom: 0.5em;
    color: var(--accent);
    font-family: "Petrona", serif;
    font-weight: bold;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 12px;
    background-color: var(--bg-header);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-family: "Petrona", serif;
    font-size: 1rem;
    border-radius: 5px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(205, 164, 94, 0.3);
}

.btn__summon {
    width: 100%;
    padding: 15px;
    margin-top: 10px;
    background-color: var(--accent);
    color: var(--bg-header);
    font-family: "Petrona", serif;
    font-weight: bold;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn__summon:hover {
    background-color: var(--accent-hover);
    box-shadow: 0 0 15px var(--accent);
    transform: translateY(-2px);
}

.parent__footer {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-between;
    padding: 80px 10% 40px;
    background-color: var(--bg-header);
    border-top: 2px solid var(--accent);
    position: relative;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
}

.child {
    flex: 1 1 250px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer__child__p {
    color: var(--text-main);
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer__child__p::first-letter {
    color: var(--accent);
    font-size: 1.2em;
    font-weight: bold;
}

.child__nav__links__parent {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    align-items: flex-start;
}

.child__nav__links__parent .nav__links__a {
    color: var(--text-main);
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

.child__nav__links__parent .nav__links__a:hover {
    color: var(--accent);
    text-shadow: 0 0 10px rgba(205, 164, 94, 0.6);
    transform: translateX(5px);
}

.footer-bottom {
    width: 100%;
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-note {
    font-family: "Imperial Script", cursive;
    font-size: 1.5rem;
    color: var(--accent);
    opacity: 0.8;
}

