:root {
    --bg-color: #fcfcf9; /* Off-white / Cream */
    --accent-primary: #90ee90; /* Light Green / Sage */
    --accent-secondary: #e9ecef; /* Light Gray */
    --text-primary: #1a1a1a;
    --text-muted: #6c757d;
    --window-border: #000000;
    --window-shadow: 6px 6px 0px 0px rgba(0, 0, 0, 0.9);
    --transition-smooth: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3l7.07 16.97 2.51-7.39 7.39-2.51L3 3z'%3E%3C/path%3E%3Cpath d='M13 13l6 6'%3E%3C/path%3E%3C/svg%3E"), auto;
}

/* Custom Selection Color */
::selection {
    background: var(--accent-primary);
    color: var(--text-primary);
}

/* Grid Background */
.grid-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(var(--accent-secondary) 1px, transparent 1px),
                      linear-gradient(90deg, var(--accent-secondary) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: -1;
    opacity: 0.3;
}

/* Sidebar Navigation */
.sidebar-nav {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    background: white;
    border: 2px solid var(--window-border);
    padding: 15px 10px;
    border-radius: 50px;
    box-shadow: 4px 4px 0px black;
}

.sidebar-nav ul {
    list-style: none;
}

.sidebar-nav li {
    margin-bottom: 20px;
}

.sidebar-nav li:last-child {
    margin-bottom: 0;
}

.sidebar-nav a {
    text-decoration: none;
    font-size: 1.5rem;
    display: flex;
    justify-content: center;
    transition: transform 0.2s ease;
}

.sidebar-nav a:hover {
    transform: scale(1.2);
}

/* Main Content */
main {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.scroll-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 0;
}

/* Window Component */
.window {
    background: white;
    border: 3px solid var(--window-border);
    box-shadow: var(--window-shadow);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.window:hover {
    transform: translate(-2px, -2px);
    box-shadow: 8px 8px 0px 0px rgba(0, 0, 0, 1);
}

.window-header {
    background: var(--accent-secondary);
    border-bottom: 3px solid var(--window-border);
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.traffic-lights {
    display: flex;
    gap: 8px;
}

.light {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1.5px solid var(--window-border);
    background: #ccc;
}

.light.close { background: #ff5f56; }
.light.minimize { background: #ffbd2e; }
.light.maximize { background: #27c93f; }

.window-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.window-controls .control-btn {
    font-family: monospace;
    font-weight: bold;
    margin-left: 10px;
    cursor: pointer;
}

.window-body {
    padding: 30px;
}





/* Hero Section */
.hero-window {
    max-width: 1100px;
    margin: 0 auto;
}

.hero-window .window-body {
    padding: 60px 50px;
}

.quick-connect {
    display: flex;
    gap: 25px;
    margin-top: 15px;
    margin-bottom: 30px;
    align-items: center;
}

.quick-connect a {
    font-size: 2.2rem;
    color: #4a6741;
    text-decoration: none;
    transition: var(--transition-smooth);
    display: inline-block;
    line-height: 1;
}

.quick-connect a:hover {
    color: var(--accent-primary);
    transform: scale(1.1);
}

#hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    min-height: 4.5rem;
}

.typewriter {
    border-right: 4px solid var(--accent-primary);
    width: fit-content;
    animation: blink 0.75s step-end infinite;
}

/* Keep cursor blinking after typing */
.typewriter.typewriter-done {
    border-right: 4px solid var(--accent-primary);
    animation: blink 0.75s step-end infinite;
}

@keyframes blink {
    from, to { border-color: transparent }
    50% { border-color: var(--accent-primary) }
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 30px;
    padding-left: 5px;
    border-left: 4px solid var(--accent-primary);
}

.bio-container p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    max-width: 600px;
}

.cta-group {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

/* Buttons */
.btn {
    padding: 12px 25px;
    font-weight: 700;
    text-decoration: none;
    border: 3px solid var(--window-border);
    border-radius: 4px;
    transition: var(--transition-smooth);
    display: inline-block;
}

.btn-primary {
    background: var(--accent-primary);
    color: var(--text-primary);
    box-shadow: 4px 4px 0px var(--window-border);
}

.btn-secondary {
    background: white;
    color: var(--text-primary);
    box-shadow: 4px 4px 0px var(--window-border);
}

.btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px var(--window-border);
}

.btn:active {
    transform: translate(2px, 2px);
    box-shadow: 0px 0px 0px var(--window-border);
}

.btn-sm {
    padding: 8px 15px;
    font-size: 0.9rem;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--window-border);
    box-shadow: 3px 3px 0px var(--window-border);
}

/* Skills Section */
.section-header {
    margin-bottom: 50px;
    text-align: center;
}

.section-title-text {
    font-size: 2.5rem;
    font-weight: 800;
    display: inline-block;
    position: relative;
    padding: 0 10px;
}

.section-title-text::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 15px;
    background: var(--accent-primary);
    z-index: -1;
    opacity: 0.5;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.skill-list {
    list-style: none;
}

.skill-list li {
    padding: 10px 0;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
}

.skill-list li i {
    font-size: 1.4rem;
    color: #4a6741; /* Sage green */
    width: 24px;
    text-align: center;
}

.certifications-container {
    max-width: 800px;
    margin: 0 auto 40px auto;
}

.cert-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.cert-item {
    background: var(--accent-secondary);
    padding: 15px 20px;
    border: 2px solid var(--window-border);
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    min-width: 280px;
}

.cert-logo {
    font-size: 1.8rem;
    color: #4a6741;
}

.cert-name {
    font-weight: 600;
}

/* Projects Section */
.projects-container {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.project-card {
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

.project-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.project-folder {
    flex-shrink: 0;
    font-size: 5rem;
    color: #4a6741;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.project-folder:hover {
    transform: scale(1.1);
}

.project-info {
    flex: 1;
}

.project-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.project-tag {
    display: inline-block;
    background: var(--accent-primary);
    padding: 4px 12px;
    border: 2px solid var(--window-border);
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
    box-shadow: 2px 2px 0px var(--window-border);
}

.project-features {
    margin: 20px 0;
    padding-left: 20px;
}

.project-features li {
    margin-bottom: 10px;
}

/* Contact Section */
.contact-window {
    max-width: 800px;
    margin: 0 auto;
}

.contact-flex {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icon {
    padding: 10px 20px;
    border: 2px solid var(--window-border);
    border-radius: 4px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-icon i {
    font-size: 1.2rem;
    color: #4a6741;
}

.social-icon:hover {
    background: var(--accent-primary);
}

.terminal-input {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.prompt { color: #27c93f; font-weight: bold; }
.command { color: var(--text-primary); margin-left: 8px; }

.terminal-output {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--text-muted);
    background: #f8f9fa;
    padding: 15px;
    border: 1.5px solid #dee2e6;
    border-radius: 4px;
}

/* Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    transition-delay: var(--delay, 0s);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar-nav {
        top: auto;
        bottom: 20px;
        right: 50%;
        transform: translateX(50%);
        flex-direction: row;
        padding: 10px 20px;
    }
    
    .sidebar-nav ul {
        display: flex;
        gap: 20px;
    }
    
    .sidebar-nav li {
        margin-bottom: 0;
    }

    .typewriter {
        font-size: 2.2rem;
        min-height: 3rem;
    }

    .contact-flex {
        grid-template-columns: 1fr;
    }

    .project-layout {
        flex-direction: column;
        gap: 20px;
        align-items: center;
        text-align: center;
    }

    .project-features {
        text-align: left;
    }

    .section-title-text {
        font-size: 2rem;
    }
}

/* Footer */
.site-footer {
    padding: 40px 20px;
    text-align: center;
    border-top: 2px solid var(--accent-secondary);
    margin-top: 100px;
}

.site-footer p {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: var(--text-muted);
}
