/* Main Styles */

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

/* html { visibility: hidden; }
html.font-loaded { visibility: visible; } */

html, body {
    height: 100%;
}

body {
    background-color: #1e1e1e;
    color: #e0e0e0;
    font-family: 'Roboto', system-ui, -apple-system, BlinkMacSystemFont;
    font-weight: 300;
    line-height: 1.6;
}

h1, h2 {
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

h1 {
    font-size: 2.4rem;
    margin-bottom: 1.2rem;
}

p {
    font-size: 1rem;
    font-weight: 300;
    color: #cfcfcf;
}

span.bold {
	font-weight: 500;
}

/* Layout */

.app {
    display: flex;
    height: 100vh;
}

/* Sidebar */

#hamburger {
    display: none;
}

.sidebar {
    width: 300px;
    background: #111;
    border-right: 1px solid #333;
    padding: 2rem 1.8rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Profile */

.profile {
    text-align: center;
    margin-bottom: 2rem;
}

.profile img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin-bottom: .8rem;
}

.profile h2 {
    font-size: 1.4rem;
    font-weight: 500;
}

.profile p {
    font-size: .95rem;
    color: #bbb;
    margin-top: .3rem;
}

/* Navigation */

.nav-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-menu ul li {
    margin: 0.8rem 0;
}

.nav-menu ul li a {
    display: block;
    padding: 0.5rem 0.7rem;
    color: #ccc;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
}

.nav-menu ul li a.active {
    color: #fff;
    font-weight: 600;
    /* border-left: 3px solid #4eaaff; */
	border-left: 3px solid #60f542;
    padding-left: 0.7rem;
}

.nav-menu ul li a:hover {
    background-color: #1e1e1e;
    color: #fff;
}

/* Social / Copyright Footer horizontal */

.copyright-footer {
    display: inline;
	text-align: center;
    justify-content: space-between;
    padding-top: 0.95rem;
    border-top: 1px solid #444;
}

.copyright-footer p {
	font-size: 0.65rem;
	
}

.social-footer {
    display: flex;
    justify-content: space-between;
    padding-top: 1.2rem;
    border-top: 1px solid #444;
}

.social-footer a {
    font-size: 1.5rem;
    /* color: #4eaaff; */
	color: #60f542;
    text-decoration: none;
    font-weight: 400;
    letter-spacing: 0.02em;
}

/* Content */

.content {
    flex: 1;
    background-color: #1e1e1e;
    padding: 5rem 5rem;
    overflow-y: auto;
}

/* Sections Header */

.section-header {
    max-width: 900px;
    margin-bottom: 3rem;
}

.section-header p {
    font-size: 1.05rem;
    color: #bdbdbd;
}

/* Sections */

.custom-section {
    max-width: 900px;
    margin-bottom: 4rem;
}

.custom-section h2 {
    margin-bottom: 1.8rem;
    position: relative;
}

.custom-section h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 40px;
    height: 2px;
    background: #60f542;
}

/* Overview Intro */

#typed-text {
    padding-bottom: 2px;
}

.cursor {
    color: #888;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    50.01%, 100% {
        opacity: 0;
    }
}

/* Overview Stats */

.stats {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.stat-box {
    text-align: center;
    background: #1c1c1c;
    border: 1px solid #2a2a2a;
    border-radius: 6px;
    padding: 1.4rem 2.2rem;
    min-width: 225px;
    margin: 1rem 0.5rem;
}

.stat-number {
    display: block;
    font-size: 2.2rem;
    font-weight: 600;
    color: #60f542;
    line-height: 1.2;
}

.stat-label {
    display: block;
    margin-top: .3rem;
    font-size: .75rem;
	font-weight: 500;
    letter-spacing: .12em;
    color: #bdbdbd;
}

/* box individual */

.stat-box {
    text-align: center;
    background: #1c1c1c;
    border: 1px solid #2a2a2a;
    border-radius: 6px;
    padding: 1.4rem 2.2rem;
    min-width: 250px;
}

/* +13 */

.stat-number {
    display: block;
    font-size: 2.2rem;
    font-weight: 600;
    color: #60f542;
    line-height: 1.2;
}

/* text */

.stat-label {
    display: block;
    margin-top: .3rem;
    font-size: .75rem;
    letter-spacing: .12em;
    color: #bdbdbd;
}

/* Timeline */

.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #333;
}

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
}

.timeline-dot {
    position: absolute;
    left: -2px;
    top: -2px;
    width: 14px;
    height: 14px;
    background: #60f542;
    border-radius: 50%;
}

.timeline-content {
    background: #1c1c1c;
    padding: 1.4rem 1.6rem;
    border-radius: 6px;
    border: 1px solid #2a2a2a;
}

.timeline-content h3 {
    margin-bottom: .3rem;
    font-size: 1.1rem;
}

.timeline-meta {
    font-size: .85rem;
    color: #9a9a9a;
    display: block;
    margin-bottom: .8rem;
}

/* Skills */

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem;
}

.skills-grid span {
    background: #1c1c1c;
    border: 1px solid #2a2a2a;
    padding: .45rem .9rem;
    border-radius: 4px;
    font-size: .9rem;
    color: #cfcfcf;
}

.icon:before {
	color: inherit;
}

/* Contact Form */

.contact-section {
    max-width: 700px;
    margin: 0 auto 4rem auto;
    padding: 0 2rem;
}

.contact-section h1 {
    margin-bottom: 0.5rem;
}

.contact-section p {
    margin-bottom: 2rem;
    color: #bdbdbd;
    font-size: 1rem;
}

form .form-row {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
}

form label {
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #ccc;
}

form input,
form textarea {
    padding: 0.8rem 1rem;
    border-radius: 5px;
    border: 1px solid #2a2a2a;
    background: #1c1c1c;
    color: #e0e0e0;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

form input:focus,
form textarea:focus {
    outline: none;
    border-color: #60f542;
    box-shadow: 0 0 8px rgba(96,245,66,0.3);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.btn-cancel,
.btn-submit {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    padding: 0.7rem 1.6rem;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s, color 0.2s;
}

.btn-cancel {
    background: #2a2a2a;
    color: #ccc;
}

.btn-cancel:hover {
    background: #3a3a3a;
}

.btn-submit {
    background: #60f542;
    color: #111;
}

.btn-submit:hover {
    background: #60f542;
}

/* Input Tweak */

input::placeholder,
textarea::placeholder {
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    font-size: 1rem;
    color: #888;
	font-style: italic;
    opacity: 1;
}

input::-webkit-input-placeholder,
textarea::-webkit-input-placeholder { color: #888; }
input:-ms-input-placeholder,
textarea:-ms-input-placeholder { color: #888; }
input::-ms-input-placeholder,
textarea::-ms-input-placeholder { color: #888; }

input::-webkit-input-placeholder,
textarea::-webkit-input-placeholder { 
    color: #888;
    font-style: italic;
}
input:-ms-input-placeholder,
textarea:-ms-input-placeholder { 
    color: #888;
    font-style: italic;
}
input::-ms-input-placeholder,
textarea::-ms-input-placeholder { 
    color: #888;
    font-style: italic;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus {
    box-shadow: 0 0 0px 1000px #1c1c1c inset !important;
    -webkit-text-fill-color: #e0e0e0 !important;
}

/* 404 */

.error-404 {
    max-width: 600px;
    margin: 20vh auto 0 auto;
}

.error-404 h1 {
    font-size: 5rem;
    margin-bottom: 0.5rem;
    color: #60f542;
}

.error-subtitle {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.error-terminal {
    font-family: monospace;
    font-size: 0.95rem;
    color: #9e9e9e;
    margin-bottom: 2rem;
}

.error-back {
    color: #60f542;
    text-decoration: none;
    font-weight: 500;
}

.error-back:hover {
    text-decoration: underline;
}

/* Toast */

.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #111;
    border-left: 4px solid #60f542;
    padding: 0.8rem 1.2rem;
    font-size: 0.9rem;
    color: #e0e0e0;
    box-shadow: 0 0 15px rgba(0,0,0,.4);
    /* animation: slideIn 1s ease; */
    animation: slideIn 1s cubic-bezier(.25,.8,.25,1) forwards;
    z-index: 9999;
}

.toast.error {
    border-color: #ff5555;
}

@keyframes slideIn {
    from {
        transform: translateX(30px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive */

@media (max-width: 768px) {
	#hamburger {
        display: block;
        position: fixed;
        top: 1rem;
        left: 1rem;
        z-index: 1100;
        font-size: 1.8rem;
        color: #60f542;
        cursor: pointer;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 250px;
        height: 100vh;
        background: #111;
        border-right: 1px solid #333;
        padding: 2rem 1.8rem;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        transition: left 0.3s ease;
        z-index: 1000;
    }

    .sidebar.open {
        left: 0;
    }

    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0,0,0,0.4);
        z-index: 900;
        display: none;
    }

    .sidebar-overlay.show {
        display: block;
    }
}

@media (max-width: 600px) {
    .form-actions {
        flex-direction: column-reverse;
        gap: 0.8rem;
    }
}