/* Homepage Styles - Confident Simplicity */

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-surface-alt) 100%);
    padding: var(--space-4xl) 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(139, 115, 85, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(139, 115, 85, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: var(--font-size-5xl);
    font-weight: 700;
    line-height: var(--line-height-tight);
    letter-spacing: -0.02em;
    margin-bottom: var(--space-md);
    background: linear-gradient(135deg, var(--color-text-primary) 0%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: var(--font-size-xl);
    color: var(--color-accent);
    font-weight: 500;
    margin-bottom: var(--space-lg);
}

.hero-description {
    font-size: var(--font-size-lg);
    color: var(--color-text-secondary);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--space-2xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* Featured Projects Section */
.featured-projects {
    padding: var(--space-4xl) 0;
    background: var(--color-surface);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-title {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    margin-bottom: var(--space-md);
    color: var(--color-text-primary);
}

.section-subtitle {
    font-size: var(--font-size-lg);
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: var(--line-height-relaxed);
}

.projects-grid {
    margin-top: var(--space-3xl);
}

.project-card {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    position: relative;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.project-preview {
    height: 200px;
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-light) 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.project-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 70%, rgba(255,255,255,0.2) 0%, transparent 50%);
}

.project-icon {
    font-size: 3rem;
    color: white;
    z-index: 1;
    position: relative;
}

.project-title {
    font-size: var(--font-size-xl);
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--color-text-primary);
}

.project-description {
    color: var(--color-text-secondary);
    margin-bottom: var(--space-md);
    font-size: var(--font-size-sm);
    line-height: var(--line-height-relaxed);
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-bottom: var(--space-lg);
}

.project-tag {
    padding: var(--space-xs) var(--space-sm);
    background: var(--color-surface-alt);
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    color: var(--color-text-secondary);
    font-weight: 500;
}

.project-links {
    display: flex;
    gap: var(--space-md);
}

.project-link {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 500;
    font-size: var(--font-size-sm);
    transition: var(--transition-normal);
    position: relative;
}

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

.project-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-accent-light);
    transition: var(--transition-normal);
}

.project-link:hover::after {
    width: 100%;
}

/* Quick Navigation Section */
.quick-nav {
    padding: var(--space-4xl) 0;
    background: var(--color-surface-alt);
}

.nav-grid {
    margin-top: var(--space-3xl);
}

.nav-card {
    text-align: center;
    transition: var(--transition-normal);
}

.nav-card:hover {
    transform: translateY(-4px);
}

.nav-icon {
    font-size: 3rem;
    margin-bottom: var(--space-md);
    display: block;
}

.nav-title {
    font-size: var(--font-size-xl);
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--color-text-primary);
}

.nav-description {
    color: var(--color-text-secondary);
    margin-bottom: var(--space-lg);
    line-height: var(--line-height-relaxed);
}

/* Footer */
.footer {
    background: var(--color-text-primary);
    color: var(--color-surface);
    text-align: center;
    padding: var(--space-2xl) 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
}

.footer-social-links {
    display: flex;
    gap: var(--space-lg);
    align-items: center;
}

.footer-social-link {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--color-surface);
    text-decoration: none;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    transition: var(--transition-normal);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.footer-social-link svg {
    width: 20px;
    height: 20px;
}

.footer p {
    color: #cccccc;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        padding: var(--space-3xl) 0;
        min-height: 80vh;
    }
    
    .hero-title {
        font-size: var(--font-size-4xl);
    }
    
    .hero-subtitle {
        font-size: var(--font-size-lg);
    }
    
    .hero-description {
        font-size: var(--font-size-base);
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-actions .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .section-title {
        font-size: var(--font-size-3xl);
    }
    
    .section-subtitle {
        font-size: var(--font-size-base);
    }
    
    .featured-projects,
    .quick-nav {
        padding: var(--space-3xl) 0;
    }
    
    .nav-grid {
        grid-template-columns: 1fr;
    }
    
    .project-links {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .footer-social-links {
        flex-direction: column;
        gap: var(--space-md);
    }
}

@media (max-width: 480px) {
    .hero {
        padding: var(--space-2xl) 0;
    }
    
    .hero-title {
        font-size: var(--font-size-3xl);
    }
    
    .project-preview {
        height: 150px;
    }
    
    .project-icon {
        font-size: 2rem;
    }
    
    .nav-icon {
        font-size: 2.5rem;
    }
}

/* Animation Delays */
.animate-fade-in.visible {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-slide-up.visible {
    animation: slideUp 0.8s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered Animation Delays */
.animate-slide-up:nth-child(1) { animation-delay: 0.1s; }
.animate-slide-up:nth-child(2) { animation-delay: 0.2s; }
.animate-slide-up:nth-child(3) { animation-delay: 0.3s; }
.animate-slide-up:nth-child(4) { animation-delay: 0.4s; }
.animate-slide-up:nth-child(5) { animation-delay: 0.5s; }
.animate-slide-up:nth-child(6) { animation-delay: 0.6s; }

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .hero-title {
        background: none;
        -webkit-text-fill-color: var(--color-text-primary);
        color: var(--color-text-primary);
    }
    
    .project-card {
        border: 2px solid var(--color-border);
    }
    
    .nav-card {
        border: 2px solid var(--color-border);
    }
}