.typed-block {
    font-family: var(--font-mono);
    font-size: 18px;
    color: #16a085;
    background: #23272e;
    min-height: 70px;
    width: 100%;
    display: block;
    white-space: pre-line;
    padding: 0 0 0 8px;
    text-align: left !important;
}
.typed-cmd {
    color: #fff;
    font-weight: 600;
}
.typed-resp {
    color: #16a085;
    font-weight: 400;
}
.typed-cursor {
    display: inline-block;
    width: 2px;
    height: 1.2em;
    background: #16a085;
    margin-left: 2px;
    vertical-align: middle;
    animation: blink-block 1s steps(1) infinite;
    text-align: left;
}
@keyframes blink-block {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

:root {
    --font-body: Montserrat, "Helvetica Neue", Helvetica, Arial, sans-serif;
    --font-heading: Montserrat, "Helvetica Neue", Helvetica, Arial, sans-serif;
    --font-mono: 'Fira Mono', 'Consolas', 'Menlo', monospace;
}

/*!
 * Grayscale Theme - Adapted for personal site
 * Based on Start Bootstrap - Grayscale Bootstrap Theme
 */

/* ============================================
   BASE STYLES
   ============================================ */

body {
    width: 100%;
    height: 100%;
    font-family: var(--font-body);
    color: #fff;
    background-color: #1a1a2e;
}

html {
    width: 100%;
    height: 100%;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 35px;
    text-transform: uppercase;
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 1px;
}

p {
    margin: 0 0 25px;
    font-size: 18px;
    line-height: 1.5;
}

@media(min-width: 767px) {
    p {
        margin: 0 0 35px;
        font-size: 20px;
        line-height: 1.6;
    }
}

a {
    color: #16a085;
    -webkit-transition: all .2s ease-in-out;
    -moz-transition: all .2s ease-in-out;
    transition: all .2s ease-in-out;
}

a:hover,
a:focus {
    text-decoration: none;
    color: #1abc9c;
}

.light {
    font-weight: 400;
}

/* ============================================
   NAVIGATION
   ============================================ */

.navbar-custom {
    margin-bottom: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .3);
    text-transform: uppercase;
    font-family: Montserrat, "Helvetica Neue", Helvetica, Arial, sans-serif;
    background-color: #1a1a2e;
}

.navbar-custom .navbar-brand {
    font-weight: 700;
}

.navbar-custom .navbar-brand:focus {
    outline: 0;
}

.navbar-custom .navbar-toggle {
    padding: 4px 6px;
    font-size: 16px;
    color: #fff;
}

.navbar-custom .navbar-toggle:focus,
.navbar-custom .navbar-toggle:active {
    outline: 0;
}

.navbar-custom a {
    color: #fff;
}

.navbar-custom .nav li.active {
    outline: none;
    background-color: rgba(255, 255, 255, .3);
}

.navbar-custom .nav li a {
    -webkit-transition: background .3s ease-in-out;
    -moz-transition: background .3s ease-in-out;
    transition: background .3s ease-in-out;
}

.navbar-custom .nav li a:hover,
.navbar-custom .nav li a:focus,
.navbar-custom .nav li a.active {
    outline: 0;
    background-color: rgba(255, 255, 255, .3);
}

@media(min-width: 767px) {
    .navbar {
        padding: 20px 0;
        border-bottom: 0;
        letter-spacing: 1px;
        background: 0 0;
        -webkit-transition: background .5s ease-in-out, padding .5s ease-in-out;
        -moz-transition: background .5s ease-in-out, padding .5s ease-in-out;
        transition: background .5s ease-in-out, padding .5s ease-in-out;
    }

    .top-nav-collapse {
        padding: 0;
        background-color: #1a1a2e;
    }

    .navbar-custom.top-nav-collapse {
        border-bottom: 1px solid rgba(255, 255, 255, .3);
    }
}

/* ============================================
   INTRO SECTION
   ============================================ */

.intro {
    display: table;
    width: 100%;
    height: 100vh;
    padding: 50px 0;
    text-align: center;
    color: #fff;
    background: url('../img/backgrounds/intro-bg.svg') no-repeat center center;
    background-color: #1a1a2e;
    background-size: cover;
    position: relative;
}

.intro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(26, 26, 46, 0.4) 100%);
    pointer-events: none;
}

.intro .intro-body {
    display: table-cell;
    vertical-align: middle;
    position: relative;
    z-index: 1;
}

.intro .intro-body .brand-heading {
    font-size: 40px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInDown 1s ease;
}

.intro .intro-body .intro-text {
    font-size: 18px;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.intro .intro-body .intro-subtext {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 10px;
    animation: fadeIn 1.5s ease;
}


.terminal-sim {
    background: #23272e;
    border-radius: 8px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.3);
    max-width: 480px;
    margin: 0 auto 20px auto;
    padding: 0;
    font-family: var(--font-mono);
    min-height: 120px;
    display: flex;
    flex-direction: column;
}
.terminal-bar {
    background: #181a1b;
    border-radius: 8px 8px 0 0;
    padding: 6px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.terminal-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 3px;
}
.terminal-dot.red { background: #ff5f56; }
.terminal-dot.yellow { background: #ffbd2e; }
.terminal-dot.green { background: #27c93f; }
.terminal-title {
    margin-left: 10px;
    color: #888;
    font-size: 13px;
    font-family: inherit;
}
.terminal-body {
    padding: 18px 18px 10px 18px;
    min-height: 140px;
    font-size: 18px;
    color: #16a085;
    background: #23272e;
    border-radius: 0 0 8px 8px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    position: relative;
    height: 140px;
    overflow: hidden;
}
#typed-output {
    color: #16a085;
    font-weight: 600;
    font-family: inherit;
    min-width: 100%;
    min-height: 1em;
    display: block;
    white-space: pre;
    font-size: 18px;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media(min-width: 767px) {
    .intro {
        height: 100%;
        padding: 0;
    }

    .intro .intro-body .brand-heading {
        font-size: 100px;
    }

    .intro .intro-body .intro-text {
        font-size: 25px;
        min-height: 80px;
    }
    
    .intro .intro-body .intro-subtext {
        font-size: 20px;
    }
}

/* ============================================
   ANIMATED BUTTON
   ============================================ */

.btn-circle {
    width: 70px;
    height: 70px;
    margin-top: 15px;
    padding: 7px 16px;
    border: 2px solid #fff;
    border-radius: 35px;
    font-size: 40px;
    color: #fff;
    background: 0 0;
    -webkit-transition: background .3s ease-in-out;
    -moz-transition: background .3s ease-in-out;
    transition: background .3s ease-in-out;
}

.btn-circle:hover,
.btn-circle:focus {
    outline: 0;
    color: #fff;
    background: rgba(255, 255, 255, .1);
}

.btn-circle i.animated {
    -webkit-transition-property: -webkit-transform;
    -webkit-transition-duration: 1s;
    -moz-transition-property: -moz-transform;
    -moz-transition-duration: 1s;
}

.btn-circle:hover i.animated {
    -webkit-animation-name: pulse;
    -moz-animation-name: pulse;
    animation-name: pulse;
    -webkit-animation-duration: 1.5s;
    -moz-animation-duration: 1.5s;
    animation-duration: 1.5s;
    -webkit-animation-iteration-count: infinite;
    -moz-animation-iteration-count: infinite;
    animation-iteration-count: infinite;
    -webkit-animation-timing-function: linear;
    -moz-animation-timing-function: linear;
    animation-timing-function: linear;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

@-webkit-keyframes pulse {
    0% {
        -webkit-transform: scale(1);
    }
    50% {
        -webkit-transform: scale(1.2);
    }
    100% {
        -webkit-transform: scale(1);
    }
}

@-moz-keyframes pulse {
    0% {
        -moz-transform: scale(1);
    }
    50% {
        -moz-transform: scale(1.2);
    }
    100% {
        -moz-transform: scale(1);
    }
}

/* ============================================
   CONTENT SECTIONS
   ============================================ */

.content-section {
    padding-top: 100px;
    padding-bottom: 100px;
}

.projects-section {
    width: 100%;
    padding: 50px 0;
    color: #fff;
    background: url('../img/backgrounds/projects-bg.svg') no-repeat center center;
    background-color: #0f3460;
    background-size: cover;
    position: relative;
}

.projects-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 52, 96, 0.7);
    pointer-events: none;
}

.projects-section .container {
    position: relative;
    z-index: 1;
}

@media(min-width: 767px) {
    .content-section {
        padding-top: 150px;
        padding-bottom: 150px;
    }

    .projects-section {
        padding: 100px 0;
    }
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    border-radius: 0;
    text-transform: uppercase;
    font-family: var(--font-heading);
    font-weight: 400;
    -webkit-transition: all .3s ease-in-out;
    -moz-transition: all .3s ease-in-out;
    transition: all .3s ease-in-out;
}

.btn-default {
    border: 1px solid #16a085;
    color: #16a085;
    background-color: transparent;
}

.btn-default:hover,
.btn-default:focus {
    border: 1px solid #16a085;
    outline: 0;
    color: #fff;
    background-color: #16a085;
}

/* ============================================
   SOCIAL BUTTONS
   ============================================ */

ul.banner-social-buttons {
    margin-top: 0;
}

ul.banner-social-buttons li {
    margin-bottom: 15px;
}

@media(max-width: 1199px) {
    ul.banner-social-buttons {
        margin-top: 15px;
    }
}

@media(max-width: 767px) {
    ul.banner-social-buttons li {
        display: block;
        margin-bottom: 20px;
        padding: 0;
    }

    ul.banner-social-buttons li:last-child {
        margin-bottom: 0;
    }
}

/* ============================================
   FOOTER
   ============================================ */

footer {
    padding: 50px 0;
    background-color: #1a1a2e;
}

footer p {
    margin: 0;
}

.hidden-link a {
    color: #1a1a2e;
    text-decoration: none;
    font-size: 14px;
    margin-left: 5px;
}

.hidden-link a:hover {
    color: #333;
}

/* ============================================
   SELECTION
   ============================================ */

::-moz-selection {
    text-shadow: none;
    background: #fcfcfc;
    background: rgba(255, 255, 255, .2);
}

::selection {
    text-shadow: none;
    background: #fcfcfc;
    background: rgba(255, 255, 255, .2);
}

img::selection {
    background: 0 0;
}

img::-moz-selection {
    background: 0 0;
}

body {
    -webkit-tap-highlight-color: rgba(255, 255, 255, .2);
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 480px) {
    .intro .intro-body .brand-heading {
        font-size: 50px;
    }
    
    .intro .intro-body .intro-text {
        font-size: 16px;
    }
    
    h2 {
        font-size: 24px;
    }
    
    p {
        font-size: 16px;
    }
}

/* ============================================
   SKILLS SECTION
   ============================================ */

.skills-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.section-subheading {
    font-size: 24px;
    margin-bottom: 40px;
    color: #16a085;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.skill-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px 20px;
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.skill-item:hover {
    background: rgba(22, 160, 133, 0.1);
    transform: translateY(-5px);
    border-color: #16a085;
}

.skill-item i {
    font-size: 40px;
    color: #16a085;
    margin-bottom: 15px;
}

.skill-item h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #fff;
}

.skill-item p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* ============================================
   FEATURED PROJECTS SECTION
   ============================================ */

.featured-projects-section {
    padding: 100px 0;
    background: linear-gradient(180deg, #1a1a2e 0%, #0f3460 100%);
}

.section-description {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 50px;
}

.projects-grid {
    margin-top: 30px;
}

#projects-rotator {
    position: relative;
    height: 560px;
    perspective: 1200px;
    overflow: hidden;
    --slot-near: clamp(180px, 18vw, 300px);
    --slot-far: clamp(300px, 33vw, 520px);
}

#projects-rotator .project-col {
    position: absolute;
    top: 0;
    left: 50%;
    float: none;
    display: flex;
    width: 30%;
    max-width: 420px;
    min-width: 240px;
    height: 100%;
    margin: 0;
    padding-left: 0;
    padding-right: 0;
    transition: transform 0.75s ease-in-out, opacity 0.75s ease-in-out, filter 0.75s ease-in-out;
    transform-origin: center center;
    transform: translateX(-50%) scale(0.7);
    opacity: 0;
    pointer-events: none;
}

#projects-rotator .project-col.project-pos-0,
#projects-rotator .project-col.project-pos-4 {
    transform: translateX(calc(-50% - var(--slot-far))) scale(0.72);
    opacity: 0.42;
    filter: saturate(0.7);
    z-index: 1;
}

#projects-rotator .project-col.project-pos-0 {
    transform: translateX(calc(-50% - var(--slot-far))) scale(0.72);
}

#projects-rotator .project-col.project-pos-4 {
    transform: translateX(calc(-50% + var(--slot-far))) scale(0.72);
}

#projects-rotator .project-col.project-pos-1,
#projects-rotator .project-col.project-pos-3 {
    transform: translateX(-50%) scale(0.86);
    opacity: 0.78;
    filter: saturate(0.9);
    z-index: 2;
    pointer-events: auto;
}

#projects-rotator .project-col.project-pos-1 {
    transform: translateX(calc(-50% - var(--slot-near))) scale(0.86);
}

#projects-rotator .project-col.project-pos-3 {
    transform: translateX(calc(-50% + var(--slot-near))) scale(0.86);
}

#projects-rotator .project-col.project-pos-2 {
    transform: translateX(-50%) scale(1);
    opacity: 1;
    filter: none;
    z-index: 4;
    pointer-events: auto;
}

.project-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 40px 30px;
    margin-bottom: 0;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    background: rgba(22, 160, 133, 0.1);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: #16a085;
}

.project-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #16a085 0%, #1abc9c 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.project-icon i {
    font-size: 35px;
    color: #fff;
}

.project-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #fff;
}

.project-card p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    flex-grow: 1;
    margin-bottom: 20px;
}

.project-tags {
    margin-bottom: 20px;
}

.project-tags .tag {
    display: inline-block;
    background: rgba(22, 160, 133, 0.2);
    color: #16a085;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    margin: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-link {
    color: #16a085;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.project-link:hover {
    color: #1abc9c;
    text-decoration: none;
}

.project-link i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.project-link:hover i {
    transform: translateX(5px);
}

.projects-controls {
    margin-top: 18px;
    display: flex;
    justify-content: center;
    gap: 12px;
}

.projects-control-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(22, 160, 133, 0.7);
    background: rgba(255, 255, 255, 0.06);
    color: #16a085;
    transition: all 0.25s ease;
}

.projects-control-btn:hover,
.projects-control-btn:focus {
    color: #fff;
    background: #16a085;
    border-color: #16a085;
    outline: none;
}

/* ============================================
   BLOG PREVIEW SECTION
   ============================================ */

.blog-preview {
    margin: 40px 0;
}

.blog-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 48px;
    font-weight: 700;
    color: #16a085;
    font-family: var(--font-heading);
}

.stat-label {
    display: block;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 5px;
}

/* ============================================
   FEATURED POSTS
   ============================================ */

.featured-posts {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.featured-title {
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
}

.featured-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.featured-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-left: 3px solid #16a085;
    text-decoration: none;
    transition: all 0.3s ease;
}

.featured-item:hover {
    background: rgba(22, 160, 133, 0.2);
    transform: translateX(5px);
    text-decoration: none;
}

.featured-item-title {
    color: #fff;
    font-weight: 500;
    font-size: 16px;
}

.featured-item:hover .featured-item-title {
    color: #16a085;
}

.featured-item-date {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
}

@media (max-width: 600px) {
    .featured-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .featured-item-date {
        font-size: 12px;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.skill-item, .project-card {
    animation: fadeInUp 0.6s ease forwards;
}

.project-icon {
    animation: float 3s ease-in-out infinite;
}

/* Staggered animation delays */
.skill-item:nth-child(1) { animation-delay: 0.1s; }
.skill-item:nth-child(2) { animation-delay: 0.2s; }
.skill-item:nth-child(3) { animation-delay: 0.3s; }
.skill-item:nth-child(4) { animation-delay: 0.4s; }

.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.2s; }
.project-card:nth-child(3) { animation-delay: 0.3s; }

/* ============================================
   RESPONSIVE - SKILLS & PROJECTS
   ============================================ */

@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .skill-item {
        padding: 20px 15px;
    }
    
    .skill-item i {
        font-size: 30px;
    }
    
    .featured-projects-section {
        padding: 60px 0;
    }
    
    .project-card {
        padding: 30px 20px;
    }

    #projects-rotator {
        height: 520px;
        --slot-near: clamp(110px, 22vw, 180px);
        --slot-far: clamp(180px, 34vw, 280px);
    }

    #projects-rotator .project-col {
        width: 58%;
        min-width: 0;
        max-width: none;
    }

    #projects-rotator .project-col.project-pos-0 {
        transform: translateX(calc(-50% - var(--slot-far))) scale(0.65);
    }

    #projects-rotator .project-col.project-pos-1 {
        transform: translateX(calc(-50% - var(--slot-near))) scale(0.8);
    }

    #projects-rotator .project-col.project-pos-2 {
        transform: translateX(-50%) scale(0.96);
    }

    #projects-rotator .project-col.project-pos-3 {
        transform: translateX(calc(-50% + var(--slot-near))) scale(0.8);
    }

    #projects-rotator .project-col.project-pos-4 {
        transform: translateX(calc(-50% + var(--slot-far))) scale(0.65);
    }
    
    .blog-stats {
        gap: 30px;
    }
    
    .stat-number {
        font-size: 36px;
    }
}

@media (max-width: 480px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-stats {
        flex-direction: column;
        gap: 20px;
    }
}

/* ============================================
   FIXED SCROLL ARROW
   ============================================ */

.scroll-arrow-fixed {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    font-size: 24px;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(26, 26, 46, 0.8);
    z-index: 1000;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    opacity: 1;
}

.scroll-arrow-fixed:hover,
.scroll-arrow-fixed:focus {
    color: #fff;
    border-color: #16a085;
    background: rgba(22, 160, 133, 0.3);
    text-decoration: none;
}

.scroll-arrow-fixed.hidden {
    opacity: 0;
    pointer-events: none;
}

.scroll-arrow-fixed i {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(5px);
    }
    60% {
        transform: translateY(3px);
    }
}
