/* Root Variables */
:root {
    --bg-color: black;
    --text-primary: rgba(255, 255, 255, 0.9);
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.6);
    --terminal-bg: #1a1a1a;
    --terminal-header: #2d2d2d;
    --accent-orange: #f97316;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'IBM Plex Mono', monospace;
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.5;
}

/* Navigation */
.nav {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 50;
    width: 90vw;
    max-width: 500px;
}

.nav-content {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px) saturate(180%);
    -webkit-backdrop-filter: blur(8px) saturate(180%);
    border-radius: 9999px;
    padding: 10px 32px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.18);
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    width: 24px;
    height: 24px;
    border-radius: 2px;
}

.social-links {
    display: flex;
    gap: 48px;
}

.social-link {
    color: white;
    transition: color 0.3s;
}

.social-link:hover {
    color: var(--accent-orange);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 128px 16px 100px; /* Increased bottom padding to account for footer */
    min-height: 100vh; /* Ensures minimum full viewport height */
}

/* Terminal */
.terminal {
    background: var(--terminal-bg);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.terminal-header {
    background: var(--terminal-header);
    padding: 8px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

.terminal-button.red { background: #ff5f56; }
.terminal-button.yellow { background: #ffbd2e; }
.terminal-button.green { background: #27c93f; }

.terminal-title {
    color: var(--text-muted);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.terminal-content {
    padding: 16px;
    min-height: 400px;
    font-size: 14px;
    color: var(--text-primary);
}

.command-line {
    margin-bottom: 8px;
    line-height: 1.5;
}

.command-prefix {
    color: #4ade80;
}

.command-separator {
    color: var(--text-muted);
}

.command-path {
    color: #60a5fa;
}

/* About Section */
.about-section {
    margin-top: 80px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 32px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 32px;
}

.about-content {
    flex: 2;
}

.about-image {
    flex: 1;
    max-width: 300px;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

.section-title {
    font-family: 'Libre Baskerville', serif;
    font-size: 24px;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.about-text {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Projects Section */
.projects-section {
    margin-top: 80px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.project-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.project-card:hover {
    transform: scale(1.02);
    border-color: rgba(255, 255, 255, 0.2);
}

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

.project-title {
    font-family: 'Libre Baskerville', serif;
    font-size: 20px;
    color: var(--text-primary);
}

.project-link {
    color: var(--text-muted);
    transition: color 0.3s;
}

.project-link:hover {
    color: var(--accent-orange);
}

.project-description {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.tech-tag {
    padding: 6px 12px;
    border-radius: 9999px;
    font-size: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.tech-tag.green {
    background: rgba(145, 96, 250, 0.05);
    color: rgba(145, 96, 250, 0.8);
    border-color: rgba(145, 96, 250, 0.3);
}

.tech-tag.blue {
    background: rgba(74, 222, 128, 0.05);
    color: rgba(74, 222, 128, 0.8);
    border-color: rgba(74, 222, 128, 0.3);
}

.tech-tag.orange {
    background: rgba(22, 196, 249, 0.05);
    color: rgba(22, 196, 249, 0.8);
    border-color: rgba(22, 196, 249, 0.3);
}

/* Interests Section */
.interests-section {
    margin-top: 80px;
    margin-bottom: 80px;
}

.interests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.interest-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.interest-card:hover {
    transform: scale(1.02);
}

.interest-title {
    font-family: 'Libre Baskerville', serif;
    font-size: 20px;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.tools-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.tool-tag {
    padding: 4px 8px;
    border-radius: 9999px;
    font-size: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
}

.interest-highlight {
    color: var(--text-primary);
    font-size: 14px;
    font-style: italic;
}

/* Footer */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px) saturate(180%);
    -webkit-backdrop-filter: blur(8px) saturate(180%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 0;
    z-index: 50;
    box-shadow: 0 -8px 32px 0 rgba(0, 0, 0, 0.18);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left, .footer-right {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-secondary);
}

.footer-right {
    gap: 24px;
}

.heart-icon {
    color: #ef4444;
    animation: pulse 1.3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.uptime-dot {
    width: 8px;
    height: 8px;
    background: #3b82f6;
    border-radius: 50%;
}

/* Animations */
@keyframes shimmer {
    0% {
        background-position: 200% center;
    }
    100% {
        background-position: -200% center;
    }
}

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

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.gradient-text {
    background: linear-gradient(
        to right,
        #f9bb8b,
        #aa79ff,
        #ff818f,
        #96e6a1,
        #bcd2ff
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 300% auto;
    animation: gradientMove 8s linear infinite;
}

@keyframes gradientMove {
    0% {
        background-position: 0% center;
    }
    100% {
        background-position: 300% center;
    }
}

/* Award Text Animation */
.award-text {
    background: linear-gradient(to right, #fcd34d, #fef3c7, #fcd34d);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 600;
    animation: shimmer 3s linear infinite;
    background-size: 200% 100%;
}

/* Utility Classes */
.hidden {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.visible {
    display: block;
    opacity: 1;
}

.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.terminal-shadow {
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

.cursor {
    display: inline-block;
    width: 8px;
    height: 16px;
    background: rgba(255, 255, 255, 0.7);
    animation: blink 1s step-end infinite;
    vertical-align: middle;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-content {
        padding: 10px 16px;
    }

    .social-links {
        gap: 24px;
    }

    .about-section {
        flex-direction: column;
        padding: 24px;
    }

    .about-image {
        max-width: 100%;
    }

    .terminal-title span {
        display: none;
    }

    .footer-right .status {
        display: none;
    }

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

@media (max-width: 480px) {
    .nav-content {
        padding: 8px 12px;
    }

    .social-links {
        gap: 16px;
    }

    .footer-content {
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }

    .footer-right {
        gap: 16px;
    }

    .terminal-content {
        font-size: 12px;
    }
}