/* index.css */
:root {
    --primary: #38bdf8;
    --secondary: #1e293b;
    --background: #0f172a;
    --text: #e2e8f0;
    --accent: #10b981;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Courier New', monospace;
    background: var(--background);
    color: var(--text);
    line-height: 1.6;
}

/* Navigation */
.fancy-nav {
    background: var(--secondary);
    padding: 1em 2em;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.logo {
    font-size: 1.5em;
    color: var(--primary);
    font-weight: bold;
    display: flex;
    align-items: center;
}

.name {
    color: var(--text);
    margin-right: 0.5em;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2em;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a:active {
    color: var(--primary);
}

.hamburger {
    display: none;
    font-size: 1.5em;
    cursor: pointer;
}

#menu-toggle {
    display: none;
}

/* Hero Section */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4em 2em;
    background: linear-gradient(135deg, var(--background), var(--secondary));
    gap: 3em; /* Add space between terminal and content */
    min-height: 80vh;
}


.terminal {
    align-self: center;
    width: 100%;
    max-width: 600px;
    background: var(--secondary);
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.2);
    text-align: left; /* Force all contents to be left-aligned */
    padding: 0; /* Reset padding if any */
}

.terminal-body {
    padding: 2em;
    text-align: left !important; /* Override any inherited text-align */
    direction: ltr; /* Ensure left-to-right flow */
}

.terminal p,
.terminal-body p {
    text-align: left !important;
}

.terminal-header {
    background: #334155;
    padding: 0.5em;
    border-radius: 10px 10px 0 0;
    display: flex;
    gap: 0.5em;
}

.dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
}

.red { background: #ff605c; }
.yellow { background: #ffbd44; }
.green { background: #00ca4e; }

.typing-anim {
    border-right: 2px solid var(--primary);
    animation: typing 4s steps(60), blink-caret 0.75s step-end infinite;
    overflow: hidden;
    white-space: pre;
    display: inline-block;
    width: 100%;
    text-align: left;
}

.terminal-lines {
    display: flex;
    flex-direction: column;
    gap: 0.3em;
}

.terminal-line {
    opacity: 0;
    white-space: pre;
    text-align: left;
    animation: fadeInLine 0.5s ease forwards;
    font-family: 'Courier New', monospace;
}

.line1 { animation-delay: 0.2s; }
.line2 { animation-delay: 1s; }
.line3 { animation-delay: 1.8s; }
.line4 { animation-delay: 2.6s; }

@keyframes fadeInLine {
    to {
        opacity: 1;
    }
}
@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--primary) }
}

.hero-content {
    margin-top: 2em;
    text-align: center;
}

.hero-content h1 {
    font-size: 2.5em;
    color: var(--primary);
    margin-bottom: 0.5em;
}

.profile-pic {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    margin-top: 2em;
    border: 3px solid var(--primary);
    transition: transform 0.3s;
}

.profile-pic:hover {
    transform: scale(1.1);
}

/* Intro Section */
.intro {
    text-align: center;
    padding: 3em 2em;
}

.section-title {
    font-size: 2em;
    color: var(--primary);
    margin-bottom: 1em;
    position: relative;
}

.section-title::after {
    content: '';
    width: 50px;
    height: 3px;
    background: var(--primary);
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.cta-button {
    display: inline-block;
    padding: 0.8em 1.5em;
    background: var(--primary);
    color: var(--secondary);
    text-decoration: none;
    border-radius: 5px;
    margin-top: 1em;
    transition: background 0.3s, transform 0.3s;
}

.cta-button:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

/* Footer */
footer {
    background: var(--secondary);
    padding: 2em;
    text-align: center;
}

.footer-links {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2em;
    margin-top: 1em;
}

.footer-links a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary);
}

/* Animations */
.fade-in {
    opacity: 0;
    animation: fadeIn 1s forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .fancy-nav {
        flex-wrap: wrap;
    }

    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        text-align: center;
    }

    .nav-links li {
        margin: 1em 0;
    }

    #menu-toggle:checked ~ .nav-links {
        display: flex;
    }

    .hamburger {
        display: block;
    }

    .hero-content h1 {
        font-size: 1.8em;
    }

    .profile-pic {
        width: 150px;
        height: 150px;
    }
}