/* Main Layout Styles - All using CSS variables */

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6rem 2rem 2rem;
    max-width: var(--max-width);
    margin: 0 auto;
    position: relative;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-name {
    background: linear-gradient(135deg, var(--text), var(--primary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.hero-roles {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
}

.cursor {
    animation: blink 1s infinite;
    margin-left: 2px;
}

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

@media (prefers-reduced-motion: reduce) {
    .cursor { animation: none; }
}

.hero-tagline {
    color: var(--muted);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.hero-decoration {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.floating-code {
    padding: 2rem;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@media (prefers-reduced-motion: reduce) {
    .floating-code { animation: none; }
}

.code-keyword { color: #ff79c6; }
.code-class { color: #50fa7b; }
.code-function { color: #8be9fd; }
.code-param { color: #ffb86c; }
.code-string { color: #f1fa8c; }

/* Stats Bar */
.stats-bar {
    background: var(--bg-elev);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 2rem;
    display: flex;
    justify-content: space-around;
    max-width: var(--max-width);
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: var(--font-mono);
}

.stat-label {
    color: var(--muted);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
}

/* Section Styles */
section {
    padding: 4rem 0;
}

.section-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

/* GitHub Stats */
.github-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.github-stat-card {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 1.5rem;
    transition: var(--transition);
}

.github-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.1);
}

.github-stat-card h3 {
    font-family: var(--font-mono);
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.github-stat-card p {
    color: var(--muted);
    margin: 0;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 2rem;
}

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

.timeline-item {
    position: relative;
    padding-bottom: 3rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.5rem;
    top: 0;
    width: 12px;
    height: 12px;
    background: var(--bg-elev);
    border: 2px solid var(--border);
    border-radius: 50%;
}

.timeline-item.active::before {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.timeline-date {
    color: var(--muted);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-mono);
}

.timeline-content h3 {
    color: var(--text);
    margin-bottom: 0.5rem;
}

.company {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 1rem;
}

.achievements {
    list-style: none;
    margin-bottom: 1rem;
}

.achievements li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--muted);
}

.achievements li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 1.5rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transition: transform 0.3s;
}

.project-card:hover::before {
    transform: scaleX(1);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.1);
}

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

.project-header h3 {
    margin-bottom: 0;
    color: var(--text);
}

.project-links a {
    color: var(--link);
    font-size: 0.875rem;
    font-weight: 500;
}

.project-description {
    color: var(--muted);
    margin-bottom: 1rem;
}

.project-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.stat-item {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--primary-color);
    padding: 0.25rem 0.5rem;
    background: var(--chip-bg);
    border-radius: 0.25rem;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.skill-category {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 1.5rem;
}

.skill-category h3 {
    color: var(--primary-color);
    font-size: 1.125rem;
    margin-bottom: 1rem;
    font-family: var(--font-mono);
}

.skill-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-item {
    padding: 0.5rem 1rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 0.25rem;
    font-size: 0.875rem;
    transition: var(--transition);
    color: var(--text);
}

.skill-item:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Tech Tags */
.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    padding: 0.25rem 0.75rem;
    background: var(--chip-bg);
    border: 1px solid var(--border);
    border-radius: 1rem;
    font-size: 0.75rem;
    color: var(--primary-color);
    font-family: var(--font-mono);
}

/* Education */
.education-card {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.education-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.education-header h3 {
    color: var(--text);
}

.education-date {
    color: var(--muted);
    font-family: var(--font-mono);
}

.education-details p {
    color: var(--text);
}

.coursework {
    color: var(--muted);
    margin-top: 1rem;
}

/* Blog Teaser */
.blog-teaser {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 3rem 2rem;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.blog-teaser h3 {
    margin-bottom: 1rem;
    color: var(--text);
}

.blog-teaser p {
    color: var(--muted);
    margin-bottom: 2rem;
}

.blog-button {
    padding: 0.75rem 2rem;
    background: var(--primary-color);
    color: #0A0A0A;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.blog-button:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

/* Contact Section */
.contact {
    background: var(--bg-elev);
    border-top: 1px solid var(--border);
}

.contact-intro {
    text-align: center;
    font-size: 1.125rem;
    color: var(--muted);
    max-width: 600px;
    margin: 0 auto 2rem;
}

.contact-methods {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.contact-button {
    padding: 1rem 2rem;
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: 0.5rem;
    color: var(--text);
    font-weight: 600;
    transition: var(--transition);
}

.contact-button.primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #0A0A0A;
}

.contact-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

/* Footer */
.footer {
    padding: 2rem;
    text-align: center;
    border-top: 1px solid var(--border);
    background: var(--bg);
}

.footer-content {
    color: var(--muted);
    font-size: 0.875rem;
}

.footer-hint {
    margin-top: 0.5rem;
    opacity: 0.7;
}

/* Scroll Animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s, transform 0.6s;
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero {
        flex-direction: column;
        text-align: center;
    }

    .hero-decoration {
        margin-top: 2rem;
    }

    .floating-code {
        display: none;
    }

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

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

    .timeline {
        padding-left: 1rem;
    }

    .timeline-item::before {
        left: -1.5rem;
    }

    .education-header {
        flex-direction: column;
        align-items: start;
    }

    .github-stats {
        grid-template-columns: 1fr;
    }
}
