/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 0 2rem;
    margin-top: 60px;
}

.hero-content {
    animation: fadeIn 0.8s ease-out;
}

.profile-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 2rem;
    border: 3px solid var(--accent);
    animation: float 3s ease-in-out infinite;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-weight: 400;
}

.hero-bio {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.btn-primary {
    display: inline-block;
    background-color: var(--accent);
    color: var(--text-primary);
    padding: 1rem 2.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--accent);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: var(--accent);
    padding: 1rem 2.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--accent);
}

.btn-secondary:hover {
    background-color: var(--accent);
    color: var(--text-primary);
}

.social-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2rem;
}

.social-link {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-card);
    color: var(--text-primary);
    border-radius: 50%;
    text-decoration: none;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.social-link:hover {
    background-color: var(--accent);
    border-color: var(--accent);
    transform: translateY(-3px);
}

/* About Section */
.about {
    padding: 6rem 0;
    background-color: var(--bg-primary);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    line-height: 1.8;
}

.about-content p {
    color: var(--text-secondary);
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
}

/* Fun Facts Section */
.fun-facts {
    padding: 6rem 0;
    background-color: var(--bg-primary);
}

.fun-facts-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr; /* keep fun facts as a single column (fixed full-width bars) */
}

.fun-fact-item {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
}

.fun-fact-item:hover {
    border-color: var(--accent);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.15);
}

.fun-fact-left {
    grid-template-columns: 40% 60%;
}

.fun-fact-left .fact-content {
    padding: 2.5rem;
}

.fun-fact-right {
    grid-template-columns: 60% 40%;
}

.fun-fact-right .fact-image {
    order: 2;
}

.fun-fact-right .fact-content {
    order: 1;
    padding: 2.5rem;
}

.fact-image {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-card) 100%);
}

.fact-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.fun-fact-item:hover .fact-image img {
    transform: scale(1.05);
}

.fact-content {
    padding: 2.5rem;
    min-height: 320px; /* normalize card height to requested 320px */
}

/* Ensure descriptive cards have consistent sizing and alternate image/content */
.fun-fact-item.fun-fact-left {
    grid-template-columns: 40% 60%;
}
.fun-fact-item.fun-fact-right {
    grid-template-columns: 60% 40%;
}
.fun-fact-item.fun-fact-right .fact-image {
    order: 2;
}
.fun-fact-item.fun-fact-right .fact-content {
    order: 1;
    padding: 2.5rem;
}

.fact-title {
    font-size: 1.6rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 700;
}

.fact-description {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1.05rem;
}

/* Metric variant for fun facts (label + value) */
.fun-fact-item.metric {
    display: flex;
    align-items: center;
    padding: 0.9rem 1.25rem;
    min-height: 64px;
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 999px;
    overflow: hidden;
}

.fun-fact-item.metric .metric-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-right: 1rem;
    width: 48px;
    text-align: left;
}

.fun-fact-item.metric .metric-label {
    flex: 1;
    text-align: center;
    color: var(--text-secondary);
    font-weight: 600;
}

/* Ensure descriptive cards have fixed height */
.fun-fact-item.fun-fact-left,
.fun-fact-item.fun-fact-right {
    min-height: 320px;
}
