/* Root Variables */
:root {
    /* Colors */
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #262626;
    --text-primary: #e4e4e7;
    --text-secondary: #a1a1aa;
    --text-tertiary: #71717a;
    --accent-blue: #3b82f6;
    --accent-green: #10b981;
    --accent-purple: #8b5cf6;
    --accent-yellow: #eab308;
    --accent-red: #ef4444;
    --border: #27272a;
    --border-light: #3f3f46;
    
    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', Consolas, monospace;
    
    /* Spacing */
    --container-width: 1200px;
    --section-padding: 120px;
    --section-padding-mobile: 60px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav {
    padding: 20px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.logo:hover {
    opacity: 0.8;
}

.logo-img {
    height: 32px;
    width: auto;
    filter: brightness(0) invert(1);
}

.logo-text {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    font-family: var(--font-mono);
}

.logo-text .accent {
    color: var(--accent-blue);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-prefix {
    color: var(--accent-blue);
    font-family: var(--font-mono);
    font-size: 12px;
    margin-right: 4px;
}

.cta-button {
    padding: 8px 20px;
    background-color: var(--accent-blue);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
}

.terminal-window {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 60px;
}

.terminal-header {
    background-color: var(--bg-tertiary);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--border);
}

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

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

.terminal-button.red {
    background-color: #ff5f57;
}

.terminal-button.yellow {
    background-color: #ffbd2e;
}

.terminal-button.green {
    background-color: #28ca42;
}

.terminal-title {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-secondary);
    margin-left: auto;
}

.terminal-content {
    padding: 40px;
}

.typing-animation {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

.typing-animation.delay-1 {
    animation-delay: 0.5s;
}

.typing-animation.delay-2 {
    animation-delay: 1s;
}

.prompt {
    color: var(--accent-green);
    margin-right: 8px;
}

.command {
    color: var(--accent-blue);
}

.hero-headline {
    font-size: clamp(48px, 8vw, 80px);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-family: var(--font-sans);
}

.btn-primary {
    background-color: var(--accent-blue);
    color: white;
}

.btn-primary:hover {
    background-color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background-color: var(--bg-secondary);
    border-color: var(--border-light);
}

.btn-secondary.disabled,
.btn-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-secondary.disabled:hover,
.btn-secondary:disabled:hover {
    background-color: transparent;
    border-color: var(--border);
    transform: none;
}

.btn-icon {
    font-size: 18px;
}

.btn-primary.large,
.btn-secondary.large {
    padding: 16px 32px;
    font-size: 18px;
}

/* Stats Bar */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 24px;
    padding: 32px;
    background-color: var(--bg-secondary);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    font-family: var(--font-mono);
}

.stat-label {
    display: block;
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* Tech Stack */
.tech-stack {
    padding: 60px 0;
    background-color: var(--bg-secondary);
}

.tech-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.tech-item {
    padding: 8px 16px;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    transition: all 0.3s ease;
}

.tech-item:hover {
    color: var(--accent-blue);
    border-color: var(--accent-blue);
    transform: translateY(-2px);
}

/* Section Headers */
.section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 60px;
}

.section-header.center {
    justify-content: center;
}

.section-number {
    color: var(--accent-blue);
    font-family: var(--font-mono);
    font-size: 20px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
}

.section-line {
    flex: 1;
    height: 1px;
    background-color: var(--border);
}

/* Services Section */
.services {
    padding: var(--section-padding) 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
}

.service-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 40px;
    position: relative;
    transition: all 0.3s ease;
}

.service-card:hover {
    border-color: var(--border-light);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.service-card.featured {
    border-color: var(--accent-blue);
    background: linear-gradient(135deg, var(--bg-secondary), rgba(59, 130, 246, 0.1));
}

.badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 16px;
    background-color: var(--accent-blue);
    color: white;
    font-size: 12px;
    font-weight: 600;
    border-radius: 999px;
}

.service-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.service-icon {
    font-size: 32px;
}

.service-header h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
}

.service-price {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 32px;
    font-family: var(--font-mono);
}

.price-prefix {
    font-size: 24px;
    color: var(--accent-green);
}

.price-suffix {
    font-size: 16px;
    color: var(--text-secondary);
    font-weight: 400;
    margin-left: 8px;
}

.service-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
}

.feature-icon {
    color: var(--accent-green);
    font-size: 18px;
}

.service-cta {
    width: 100%;
    padding: 12px 24px;
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-mono);
}

.service-cta:hover {
    background-color: var(--bg-tertiary);
    border-color: var(--border-light);
}

.service-cta.primary {
    background-color: var(--accent-blue);
    color: white;
    border-color: var(--accent-blue);
}

.service-cta.primary:hover {
    background-color: #2563eb;
}

/* Portfolio Section */
.portfolio {
    padding: var(--section-padding) 0;
    background-color: var(--bg-secondary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
    margin-bottom: 48px;
}

.project-card {
    background-color: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.project-image {
    height: 240px;
    background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-secondary));
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.project-tech {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.project-tech span {
    padding: 4px 12px;
    background-color: rgba(59, 130, 246, 0.2);
    color: var(--accent-blue);
    border: 1px solid var(--accent-blue);
    border-radius: 4px;
    font-size: 12px;
    font-family: var(--font-mono);
}

.project-content {
    padding: 32px;
}

.project-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

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

.project-stats {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.project-stats span {
    font-size: 14px;
    color: var(--text-secondary);
}

.project-link {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s ease;
}

.project-link:hover {
    color: #2563eb;
}

.portfolio-cta {
    text-align: center;
}

.github-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    text-decoration: none;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.github-link:hover {
    background-color: var(--bg-tertiary);
    border-color: var(--border-light);
}

/* Process Section */
.process {
    padding: var(--section-padding) 0;
}

.timeline {
    position: relative;
    padding-left: 60px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--border);
}

.timeline-item {
    position: relative;
    padding-bottom: 60px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -60px;
    top: 0;
    width: 40px;
    height: 40px;
    background-color: var(--bg-secondary);
    border: 2px solid var(--accent-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.week {
    font-size: 12px;
    color: var(--accent-blue);
    font-family: var(--font-mono);
    font-weight: 600;
}

.timeline-content h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.code-block {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 24px;
    font-family: var(--font-mono);
    font-size: 14px;
    line-height: 1.6;
    overflow-x: auto;
}

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

.code-keyword {
    color: var(--accent-purple);
}

.code-function {
    color: var(--accent-blue);
}

.code-type {
    color: var(--accent-green);
}

.code-property {
    color: var(--accent-yellow);
}

/* Contact Section */
.contact {
    padding: var(--section-padding) 0;
    background-color: var(--bg-secondary);
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-description {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 48px;
    line-height: 1.6;
}

.contact-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.response-time {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-green);
    border-radius: 50%;
    display: inline-block;
    animation: pulse 2s infinite;
}

/* Footer */
.footer {
    padding: 60px 0 40px;
    background-color: var(--bg-primary);
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.footer-main {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 48px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
}

.footer-logo-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-logo {
    height: 32px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-tagline {
    color: var(--text-secondary);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.footer-column h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-column a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.footer-bottom p {
    font-size: 14px;
    color: var(--text-tertiary);
}

.footer-legal {
    margin-top: 8px;
}

/* Loading text for footer posts */
.loading-text {
    opacity: 0.5;
    font-style: italic;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .hero-headline {
        font-size: 36px;
    }
    
    .services-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
    
    .section-padding {
        padding: var(--section-padding-mobile) 0;
    }
    
    .timeline {
        padding-left: 40px;
    }
    
    .timeline-marker {
        left: -40px;
    }
}