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

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: #111;
    color: #eee;
    font-family: "Courier New", Courier, monospace;
    min-height: 100vh;
    margin: 0;
    position: relative;
    scroll-behavior: smooth;
    overflow-x: hidden;
    background-color: transparent;
    background-image: radial-gradient(#161616 2.5px, #111 2.5px);
    background-size: 30px 30px;
    width: 100%;
    height: 100%;
}

code {
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', monospace;
}

.container {
    width: 100%;
    max-width: 600px;
    padding: 10px;
    margin: 0 auto; 
}

h2 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.box {
    padding: 20px;
    margin: 10px;
    border: 1px solid #222222; 
    border-radius: 8px;
    background-color: #111;
    text-align: center; 
    transition: all 0.3s ease;
}

.section-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    font-size: 1.1rem;
    font-weight: bold;
    color: #ffffff;
}

.section-box .section-list {
    font-size: 1rem;
    color: #bbbbbb;
    font-style: italic;
}

/* Header */
.header + main {
    margin-top: 50px; 
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #111;
    color: #eee;
    padding: 10px 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.nav-links {
    list-style-type: none;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.nav-links li{
    margin: 2px 8px;
}

.nav-item {
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    color: #eee;
    transition: color 0.3s;
}

.nav-item:hover {
    color: #4CAF50;
}

.ascii-art {
    font-size: 20px;
    white-space: pre;
    overflow: hidden;
    letter-spacing: -11px;
    transition: letter-spacing 0.5s ease-in-out;
}

.ascii-art:hover {
    letter-spacing: normal;
}

header {
    text-align: center;
    margin-bottom: 20px;
}

.time {
    color: #888;
}

.intro p {
    margin: 10px 0;
}

.contact-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
}

.social-btn {
    color: #ebebeb;
    text-decoration: none;
    padding: 10px;
    display: flex;
    align-items: center;
    transition: color 0.3s;
    font-size: 16px;
    font-weight: bold;
}

.social-btn:hover {
    color: #4CAF50; 
}

.social-btn svg {
    width: 32px;
    height: 32px;
}

.box {
    width: 100%;
    padding: 10px;
    border: 1px solid #333;
    text-align: center;
}

/* Skills and Tools */
.directions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 20px auto; 
    max-width: 600px;
    width: 100%;
}

.project-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    border: 1px solid #222222;
    border-radius: 8px;
    padding: 20px;
    background-color: #111;
    text-align: center;
    transition: all 0.3s ease;
    max-width: 600px;
    width: 100%;
    margin: 20px auto; 
}

/* Projects */
.project-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    border: 1px solid #222222;
    border-radius: 8px;
    padding: 20px;
    background-color: #111;
    text-align: center;
    transition: all 0.3s ease;
}

.project-gif {
    max-width: 100%;
    border-radius: 8px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-gif:hover {
    transform: scale(1.05);
}

.project-info h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.project-icons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 15px;
}

.tech-icons, .github-link {
    display: flex;
    align-items: center;
    gap: 8px;
}

.icon {
    font-size: 1.5rem;
    color: #eee;
    transition: color 0.3s ease;
    width: 24px;  
    height: 24px;
}

.github-link {
    text-decoration: none;
    color: aqua;
    font-weight: bold;
}

.github-link:hover .icon {
    color: #4CAF50;
}

.project-info p {
    font-size: 1rem;
    margin: 5px 0;
}

.project-info .further-info a {
    color: aqua;
    text-decoration: none;
}

.project-info .further-info a:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    text-align: center;
    padding: 20px;
    background-color: #111;
    color: #eee;
    position: relative;
}

.trademark {
    font-size: 1rem;
    margin-bottom: 10px;
}

.footer-line{
    margin-bottom: 12px;
    color: #111;
}

/* Cool button from Uiverse.io, by satyamchaudharydev */ 
button {
    width: 140px;
    height: 56px;
    overflow: hidden;
    border: none;
    color: #fff;
    background: none;
    position: relative;
    padding-bottom: 2em;
    cursor: pointer;
}

button > div,
button > svg {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
}

button:before {
    content: "";
    font-family: 'Courier New', Courier, monospace;
    position: absolute;
    height: 2px;
    bottom: 0;
    left: 0;
    width: 100%;
    transform: scaleX(0);
    transform-origin: bottom right;
    background: currentColor;
    transition: transform 0.25s ease-out;
}

button:hover:before {
    transform: scaleX(1);
    transform-origin: bottom left;
}

button .clone > *,
button .text > * {
    opacity: 1;
    font-size: 1.3rem;
    transition: 0.2s;
    margin-left: 4px;
}

button .clone > * {
    transform: translateY(60px);
}

button:hover .clone > * {
    opacity: 1;
    transform: translateY(0px);
    transition: all 0.2s cubic-bezier(0.215, 0.61, 0.355, 1) 0s;
}

button:hover .text > * {
    opacity: 1;
    transform: translateY(-60px);
    transition: all 0.2s cubic-bezier(0.215, 0.61, 0.355, 1) 0s;
}

button:hover .clone > :nth-child(1) {
    transition-delay: 0.15s;
}

button:hover .clone > :nth-child(2) {
    transition-delay: 0.2s;
}

button:hover .clone > :nth-child(3) {
    transition-delay: 0.25s;
}

button:hover .clone > :nth-child(4) {
    transition-delay: 0.3s;
}

button svg {
    width: 20px;
    right: 0;
    top: 50%;
    transform: translateY(-50%) rotate(-50deg);
    transition: 0.2s ease-out;
}

button:hover svg {
    transform: translateY(-50%) rotate(-90deg);
}

/* Responsive */
@media (max-width: 768px) {
    .container {
    padding: 5px;
    }

    .box {
    width: 100%;
    padding: 10px;
    font-size: 0.9rem;
    margin: 0 auto; 
    }

    .section-box {
    gap: 10px;
    }

    .ascii-art{
        font-size: 13px;
        letter-spacing: normal; 
        transition: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 5px;
    }

    .box {
        width: 100%;
        padding: 8px;
        font-size: 0.8rem;
        margin: 0 auto; 
    }

    .section-box {
        font-size: 1rem;
    }

    .section-list {
        font-size: 0.9rem;
    }

    .social-btn svg {
        width: 24px;
        height: 24px;
    }
    
    .index p {
        margin-bottom: 15px;
    }
}