/* Francis Pedraza-Inspired Elegant Design System */

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

/* Refined Typography and Color System */
:root {
    --white: #ffffff;
    --black: #000000;
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #e5e5e5;
    --gray-300: #d4d4d4;
    --gray-400: #a3a3a3;
    --gray-500: #737373;
    --gray-600: #525252;
    --gray-700: #404040;
    --gray-800: #262626;
    --gray-900: #171717;
}

/* Base Typography - Sophisticated and Elegant */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    color: var(--black);
    background-color: var(--white);
    font-weight: 400;
    letter-spacing: -0.011em;
}

/* Elegant Heading System */
h1, h2, h3, h4, h5, h6 {
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--black);
}

h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 500;
}

h2 {
    font-size: 2.5rem;
    line-height: 1.15;
}

h3 {
    font-size: 1.5rem;
    line-height: 1.3;
}

p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--gray-700);
    font-weight: 400;
}

/* Sophisticated Navigation */
.elegant-nav {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: 1.5rem 0;
}

.elegant-nav a {
    color: var(--black);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    transition: opacity 0.2s ease;
}

.elegant-nav a:hover {
    opacity: 0.6;
}

/* Hero Section - Minimalist & Bold */
.hero-minimal {
    padding: 8rem 2rem;
    background: var(--white);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 500;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 2rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.7;
    color: var(--gray-700);
    max-width: 48rem;
    margin: 0 auto 3rem;
    font-weight: 400;
}

/* About Section - Narrative Style */
.about-section {
    padding: 6rem 2rem;
    background: var(--white);
}

.narrative-text {
    font-size: 1.125rem;
    line-height: 1.9;
    color: var(--gray-800);
    max-width: 50rem;
    margin: 0 auto 2rem;
    font-weight: 400;
}

.narrative-text strong {
    font-weight: 600;
    color: var(--black);
}

/* Portfolio Section - Elegant Cards */
.portfolio-section {
    padding: 6rem 2rem;
    background: var(--gray-50);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 75rem;
    margin: 3rem auto 0;
}

.portfolio-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    padding: 2rem;
    transition: border-color 0.3s ease, transform 0.3s ease;
    text-decoration: none;
    display: block;
}

.portfolio-card:hover {
    border-color: var(--black);
    transform: translateY(-2px);
}

.portfolio-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--black);
    font-weight: 500;
}

.portfolio-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--gray-600);
    margin-bottom: 1rem;
}

.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.portfolio-tag {
    font-size: 0.8125rem;
    color: var(--gray-500);
    padding: 0.25rem 0.75rem;
    border: 1px solid var(--gray-300);
    background: var(--gray-50);
}

.portfolio-link-arrow {
    display: inline-flex;
    align-items: center;
    font-size: 0.875rem;
    color: var(--black);
    margin-top: 1rem;
    font-weight: 500;
}

.portfolio-link-arrow svg {
    margin-left: 0.5rem;
    width: 1rem;
    height: 1rem;
}

/* Contact Section */
.contact-section {
    padding: 6rem 2rem;
    background: var(--white);
    border-top: 1px solid var(--gray-200);
}

/* Refined Footer */
.elegant-footer {
    background: var(--white);
    border-top: 1px solid var(--gray-200);
    padding: 3rem 2rem 2rem;
}

.footer-content {
    max-width: 75rem;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--gray-600);
    text-decoration: none;
    font-size: 0.9375rem;
    display: flex;
    align-items: center;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--black);
}

.footer-links svg {
    width: 1rem;
    height: 1rem;
    margin-left: 0.25rem;
}

.footer-copyright {
    color: var(--gray-500);
    font-size: 0.875rem;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--gray-600);
    max-width: 40rem;
    margin: 0 auto;
}

/* Link with Arrow */
.link-arrow {
    display: inline-flex;
    align-items: center;
    color: var(--black);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.link-arrow:hover {
    opacity: 0.6;
}

.link-arrow svg {
    margin-left: 0.5rem;
    width: 1.125rem;
    height: 1.125rem;
}

/* Responsive Typography */
@media (max-width: 768px) {
    h1, .hero-title {
        font-size: 2.5rem;
    }
    
    h2, .section-title {
        font-size: 2rem;
    }
    
    p, .narrative-text {
        font-size: 1rem;
    }
    
    .hero-minimal {
        padding: 4rem 1.5rem;
    }
    
    .about-section,
    .portfolio-section,
    .contact-section {
        padding: 4rem 1.5rem;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

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

.fade-in {
    animation: fadeIn 0.8s ease-out;
}

/* Logo/Brand Styling */
.brand-logo {
    font-size: 1.125rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--black);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.brand-logo:hover {
    opacity: 0.6;
}

/* Section Spacing */
section {
    position: relative;
}

.container {
    max-width: 75rem;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-large {
    margin-bottom: 4rem;
}

.mb-medium {
    margin-bottom: 2rem;
}

.mb-small {
    margin-bottom: 1rem;
}

.mt-large {
    margin-top: 4rem;
}
