/* Styling for index.html */

html { scroll-behavior: smooth; }

:root {
    --bg-color: #121e28;
    --accent-color: #ff705a;
    --text-color: #c9d1d9;
    --muted-text: #8b949e;

    --poppins: 'Poppins', sans-serif;

    --aside-w: clamp(320px, 36vw, 520px);
}

body {
    background-image: radial-gradient(#273d50, #0d161d);
    background-color: #0d161d;
}

.container {
    background-color: #121e28;
    border-radius: 10px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 1.25rem;
}
/* ---------------------------------------------------------------------------- */

/* NAVIGATIONBAR */
#myName {
    font-family: var(--poppins);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
    margin-right: auto;
}
.navbar {
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 3000;
    background: #121e28c0;
    padding: 10px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-toggle {
    display: none;
    border: none;
    background: transparent;
    color: var(--text-color);
    font-size: 1.5rem;
    padding: 6px;
    border-radius: 8px;
    cursor: pointer;
}
.nav-toggle:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

.navbar a {
    font-family: var(--poppins);
    color: #ced0d4;
    text-decoration: none;
    padding: 6px;
    border-radius: 8px;
}
.navbar a:hover {
    color: var(--accent-color);
    transform: scale(1.05);
    transition: transform .2s ease-in-out, color .2s ease-in-out;
}
/* ---------------------------------------------------------------------------- */


/* HERO SECTION */
header {
    font-family: var(--poppins);
    text-align: left;
    color: #c9d1d9;
    margin-top: 50px;
}

header h1 {
    color: #f5f5f5;
    font-size: 3.5rem;
    margin-left: 50px;
    opacity:0;
    transform:translateX(30px);
    animation:text-in 2000ms 120ms ease-out forwards;
}

header h2 {
    font-size: 2.5rem;
    margin-left: 50px;
    opacity:0;
    transform:translateX(30px);
    animation:text-in 2000ms 120ms cubic-bezier(.2,.8,.2,1) forwards;
}

header p {
    font-size: 2rem;
    text-indent: -50px;
}

#dot {
    font-family: var(--poppins);
    color: var(--accent-color);
}

.tagline{
    display:flex;
    align-items:baseline;
    margin-left: -20px;
    gap:60px;
    font-size:2rem;
}

.tagline::before{
  content:"";
  width:6ch;
  height:2px;
  background:var(--accent-color);
  transform-origin:left;
  transform:scaleX(0);
  animation:line-in 2000ms cubic-bezier(.2,.8,.2,1) forwards;
}

.tagline__text{
    display:inline-block;
    opacity:0;
    transform:translateY(30px);
    animation:text-in 2000ms 120ms cubic-bezier(.2,.8,.2,1) forwards;
}

@keyframes line-in { to { transform:scaleX(1); } }
@keyframes text-in { to { opacity:1; transform:translateY(0); } }

.hero-grid {
    display: grid;
    grid-template-columns: 1fr var(--aside-w);
    align-items: center;
    gap: var(--hero-gap);
}
.hero-text {
    max-width: 560px;
}
.hero-aside {
    transform-origin:right;
    transform:scaleX(0);
    animation:line-in 1000ms cubic-bezier(.2,.8,.2,1) forwards;
}

.terminal-card{
    background:#17232d;
    border:1px solid rgba(255,255,255,.06);
    border-radius:10px;
    overflow:hidden;
    box-shadow:0 10px 30px rgba(0,0,0,.35);
    color: var(--text-color);
}
.terminal-card .term-pre a {
    color: var(--accent-color);
    text-decoration: none;
}
.terminal-card .term-pre a:hover {
    color: #ff9383;
}
.term-bar{
    position:relative;
    display:flex; align-items:center; gap:8px;
    padding:10px 12px;
    background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(0,0,0,.06));
}

.dot{ width:10px; height:10px; border-radius:50%; display:inline-block; }
.dot-red{ background:var(--accent-color); }
.dot-yellow{ background:#ffbd2e; }
.dot-green{ background:#27c93f; }

.term-title{
  position:absolute; left:50%; transform:translateX(-50%);
  font-size:.85rem; color:#8b949e; letter-spacing:.02em;
}

.term-pre{
    margin:0; padding:14px 16px;
    font-family: Fira Code,ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size:.95rem; line-height:1.55; white-space:pre; overflow:auto;
}

.term-pre code::after{
    content:""; display:inline-block; width:8px; height:1.1em; margin-left:4px;
    background: currentColor; opacity:.7; vertical-align:-0.15em;
    animation: blink 1s steps(1,end) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
/* ---------------------------------------------------------------------------- */


/* BUTTONS (under hero section) */
.buttons {
    display: flex;
    gap: 15px;
    margin-top: 50px;
    margin-left: 50px;
    transform:translateY(30px);
    animation:text-in 2000ms 120ms cubic-bezier(.2,.8,.2,1) forwards;
}

.bright-btn {
    font-family: var(--poppins);
    background-color: var(--accent-color);
    color: #ced0d4;
    padding: 10px 20px;
    border: 2px solid var(--accent-color);
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

.bright-btn:hover {
    background-color: #121e28;
}

.dark-btn {
    font-family: var(--poppins);
    background-color: #121e28;
    color: #ced0d4;
    padding: 10px 20px;
    border: 2px solid var(--accent-color);
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

.dark-btn:hover {
    background-color: var(--accent-color);
}
/* ---------------------------------------------------------------------------- */


/* SKILLS SECTION */
.skills {
    background-color: #17232d;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    padding: 15px;
    margin-top: 50px;
    border-radius: 10px;
}

.skills a {
    font-family: var(--poppins);
    font-size: 1.1rem;
    text-decoration: none;
    color: #8b949e;
    color: #3d4047;
}

.skills a:hover {
    color: var(--accent-color);
    transform: scale(1.1);
    transition: transform .2s ease-in-out, color .2s ease-in-out;
}

.skills a:hover::before {
    font-family: "Fira Code", monospace;
    content: "<";
    margin-right: 2px;
}

.skills a:hover::after {
    font-family: "Fira Code", monospace;
    content: "/>";
    margin-left: 2px;
}
#skills [data-skill].is-active {
  color: var(--accent-color);
  transform: scale(1.05);
}
/* ---------------------------------------------------------------------------- */


/* ABOUT ME SECTION */
#about-me {
    font-family: var(--poppins);
    background-color: #17232d;
    color: #c9d1d9;
    padding: 20px;
    margin: 50px auto;
    border-radius: 10px;
    max-width: 800px;
}

#about-me h3 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: flex-start;
}

.about-services {
    display: flex;
    flex-direction: column;
    margin-top: 50px;
    gap: 25px;
}

.service {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.2rem;
    color: #c9d1d9;
}

.service i {
    font-size: 1.8rem;
    color: var(--accent-color);
}

#about-text h3 {
    font-size: 2rem;
    margin-bottom: 10px;
}

#about-text p {
    position: relative;
}
#about-text p.type-caret::after {
    content: "";
    display: inline-block;
    width: 8px;
    height: 1.1em;
    vertical-align: -0.15em;
    background: currentColor;
    opacity: .7;
    margin-left: 4px;
    animation: caret-blink 1s steps(1,end) infinite;
}
@keyframes caret-blink { 50% { opacity: 0; } }

.about-stats {
    display: flex;
    gap: 30px;
    margin-top: 25px;
}

.stat h4 {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 5px;
    justify-content: center;
    display: flex;
}

.stat p {
    font-size: 1rem;
    color: #8b949e;
}
/* ---------------------------------------------------------------------------- */


/* Optimizations for smaller screens below */

@media (max-width: 768px) {

    /* NAVBAR / HAMBURGARMENU */
    .navbar {
        position: relative;
        position: sticky;
        top: 0;
        z-index: 3000;
        background: #121e28c0;
    }

    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        z-index: 500;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: flex;
        flex-direction: column;
        gap: 4px;
        background: #121e28ee;
        border-radius: 10px;
        padding: 10px;
        box-shadow: 0 10px 24px rgba(0,0,0,.3);
        z-index: 2000; 

        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transform: translateY(-8px);
        transition:
        max-height .3s ease,
        opacity .2s ease,
        transform .25s ease;
    }

    /* menu open */
    .nav-links[data-open="true"] {
        max-height: 320px;
        opacity: 1;
        transform: translateY(0);
    }

    .nav-links a {
        padding: 10px 12px;
        border-radius: 8px;
    }
    .nav-links a:hover {
        transform: none;
        background: rgba(255,255,255,.04);
        color: #ff9383;
    }

    /* HERO SECTION */
    header {
        text-align: center;
        margin: 0;
        margin-top: 60px;
    }

    header h1 {
        font-size: 2.5rem;
        margin: 0 auto;
    }

    header h2 {
        font-size: 1.5rem;
        margin: 0 auto;
    }

    .tagline {
        display: flex;
        flex-direction: column-reverse;
        align-items: center;
        margin-left: 35px;
        gap: 5px;
    }
    .tagline::before {
        width: 5ch;
        height: 2px;
        margin-right: 50px;
        background: var(--accent-color);
        transform-origin: left;
        transform: scaleX(0);
        animation: line-in 2000ms cubic-bezier(.2,.8,.2,1) forwards;
    }

    .tagline__text {
        font-size: 1.5rem;
        opacity:0;
        transform:translatex(30px);
        animation:text-in 2000ms 120ms cubic-bezier(.2,.8,.2,1) forwards;
    }
    .hero-grid {
        display: flex;
        flex-direction: column-reverse;
    }
    .hero-aside {
        display: none;
    }

    /* BUTTONS SECTION */
    .bright-btn, .dark-btn {
        font-size: 0.8rem;
        padding: 8px 16px;
    }

    .skills {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
        padding: 10px;
    }

    .skills a {
        font-size: 1.1rem;
    }

    #about-me {
        text-align: center;
        margin: 30px auto;
        padding: 15px;
    }

    .about-container {
    grid-template-columns: 1fr;
    text-align: center;
    }

    .about-services {
        display: none;
    }

    .about-stats {
        gap: 20px; margin-top: 15px;
    }

}