:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #1a1a2e;
    --bg-tertiary: #16213e;
    --accent-primary: #64ffda;
    --accent-secondary: #bb86fc;
    --accent-tertiary: #03dac6;
    --text-primary: #e8eaed;
    --text-secondary: #9aa0a6;
    --text-muted: #5f6368;
    --terminal-bg: #1e1e1e;
    --terminal-border: #333;
    --card-bg: rgba(26, 26, 46, 0.8);
    --card-border: rgba(100, 255, 218, 0.2);
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --shadow-primary: 0 4px 20px rgba(100, 255, 218, 0.1);
    --shadow-secondary: 0 8px 40px rgba(100, 255, 218, 0.15);
}

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

body {
    font-family:
        "Inter",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Animated starfield background */
.stars,
.stars2,
.stars3 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.stars {
    background: transparent
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="0.5" fill="%23ffffff" opacity="0.8"/><circle cx="80" cy="30" r="0.3" fill="%23ffffff" opacity="0.6"/><circle cx="30" cy="60" r="0.4" fill="%23ffffff" opacity="0.7"/><circle cx="70" cy="80" r="0.2" fill="%23ffffff" opacity="0.5"/><circle cx="50" cy="10" r="0.3" fill="%23ffffff" opacity="0.6"/><circle cx="10" cy="90" r="0.4" fill="%23ffffff" opacity="0.7"/><circle cx="90" cy="70" r="0.2" fill="%23ffffff" opacity="0.5"/></svg>')
        repeat;
    animation: moveStars 200s linear infinite;
}

.stars2 {
    background: transparent
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="30" cy="40" r="0.3" fill="%2364ffda" opacity="0.6"/><circle cx="70" cy="60" r="0.2" fill="%2364ffda" opacity="0.4"/><circle cx="10" cy="80" r="0.4" fill="%2364ffda" opacity="0.5"/><circle cx="90" cy="20" r="0.2" fill="%2364ffda" opacity="0.3"/></svg>')
        repeat;
    animation: moveStars 300s linear infinite;
}

.stars3 {
    background: transparent
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="40" cy="30" r="0.2" fill="%23bb86fc" opacity="0.4"/><circle cx="60" cy="70" r="0.3" fill="%23bb86fc" opacity="0.5"/><circle cx="20" cy="90" r="0.2" fill="%23bb86fc" opacity="0.3"/></svg>')
        repeat;
    animation: moveStars 400s linear infinite;
}

@keyframes moveStars {
    0% {
        transform: translateY(0px);
    }
    100% {
        transform: translateY(-100vh);
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* Hero Section */
.hero {
    padding: 80px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
}

.terminal-window {
    background: var(--terminal-bg);
    border: 2px solid var(--terminal-border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-secondary);
    max-width: 600px;
    width: 100%;
    backdrop-filter: blur(10px);
}

.terminal-header {
    background: linear-gradient(90deg, #2d2d2d, #1a1a1a);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--terminal-border);
}

.terminal-buttons {
    display: flex;
    gap: 8px;
}

.btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.btn.red {
    background: #ff5f57;
}
.btn.yellow {
    background: #ffbd2e;
}
.btn.green {
    background: #28ca42;
}

.terminal-title {
    font-family: "JetBrains Mono", monospace;
    font-size: 13px;
    color: var(--text-secondary);
}

.terminal-content {
    padding: 20px;
    font-family: "JetBrains Mono", monospace;
}

.terminal-line {
    margin-bottom: 10px;
}

.prompt {
    color: var(--accent-primary);
    font-weight: 500;
}

.command {
    color: var(--text-primary);
    margin-left: 10px;
}

.output {
    color: var(--accent-tertiary);
    font-size: 0.9rem;
    margin-left: 20px;
}

.terminal-output {
    padding-left: 20px;
    margin-top: 15px;
}

.name {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--accent-primary);
    margin-bottom: 10px;
    text-shadow: 0 0 20px rgba(100, 255, 218, 0.3);
}

.title {
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* Section Titles */
.section-title {
    margin-bottom: 40px;
    text-align: center;
}

.code-comment {
    font-family: "JetBrains Mono", monospace;
    color: var(--text-muted);
    font-size: 1.1rem;
    position: relative;
}

.code-comment::before {
    content: "";
    position: absolute;
    left: -50px;
    top: 50%;
    width: 40px;
    height: 1px;
    background: var(--accent-primary);
}

.code-comment::after {
    content: "";
    position: absolute;
    right: -50px;
    top: 50%;
    width: 40px;
    height: 1px;
    background: var(--accent-primary);
}

/* Social Links */
.social-links {
    padding: 80px 0;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.social-link:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-primary);
    border-color: var(--accent-primary);
}

.social-link .icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-link .icon svg {
    width: 100%;
    height: 100%;
    transition: all 0.3s ease;
}

.social-link.bluesky .icon svg {
    color: #00bcd4;
}
.social-link.twitter .icon svg {
    color: #1da1f2;
}
.social-link.github .icon svg {
    color: #ffffff;
}
.social-link.photos .icon svg {
    color: var(--accent-secondary);
}

.social-link:hover .icon svg {
    transform: scale(1.1);
}

.social-link span {
    font-weight: 500;
    font-size: 1.1rem;
}

/* Projects Section */
.projects {
    padding: 80px 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.project-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 30px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover::before {
    opacity: 1;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-secondary);
    border-color: var(--accent-primary);
}

.project-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.project-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent-primary);
}

.project-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
}

.status-dot.active {
    background: #4caf50;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
}

.project-description {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.7;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tag {
    background: rgba(100, 255, 218, 0.1);
    color: var(--accent-primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(100, 255, 218, 0.2);
}

.project-links {
    display: flex;
    gap: 15px;
}

.project-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border: 1px solid rgba(100, 255, 218, 0.3);
    border-radius: 8px;
    background: rgba(100, 255, 218, 0.05);
}

.project-link:hover {
    background: rgba(100, 255, 218, 0.1);
    transform: translateX(3px);
}

.project-link svg {
    width: 16px;
    height: 16px;
}

/* Footer */
.footer {
    padding: 60px 0 40px;
    text-align: center;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.code-snippet {
    font-family: "JetBrains Mono", monospace;
    background: var(--terminal-bg);
    border: 1px solid var(--terminal-border);
    border-radius: 12px;
    padding: 20px;
    text-align: left;
    font-size: 0.9rem;
    line-height: 1.8;
    backdrop-filter: blur(10px);
}

.code-keyword {
    color: #ff7733;
    font-weight: 500;
}

.code-variable {
    color: #ffcc66;
}

.code-property {
    color: #66d9ef;
}

.code-string {
    color: #a6e22e;
}

.code-comment {
    color: var(--text-muted);
}

.code-snippet .code-comment::before,
.code-snippet .code-comment::after {
    display: none;
}

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

    .hero {
        padding: 60px 0;
    }

    .name {
        font-size: 2rem;
    }

    .title {
        font-size: 1rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-card {
        padding: 20px;
    }

    .links-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .code-comment::before,
    .code-comment::after {
        display: none;
    }

    .social-links,
    .projects {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .terminal-content {
        padding: 15px;
    }

    .terminal-header {
        padding: 10px 15px;
    }

    .name {
        font-size: 1.8rem;
    }

    .project-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .project-header h3 {
        font-size: 1.3rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection styling */
::selection {
    background: rgba(100, 255, 218, 0.3);
    color: var(--text-primary);
}

/* Focus states for accessibility */
.social-link:focus,
.project-link:focus {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-secondary);
}

