/* Base Styles */
:root {
    --bg: #f3f8ff;
    --muted-bg: #f7fafd;
    --primary: #0f52ba;
    --primary-dark: #083a8c;
    --accent: #4da3ff;
    --text: #1b2a4a;
    --muted-text: #5b6b85;
    --overlay-dark: rgba(3,17,43,0.55);
    --shadow-color: rgba(11,35,71,0.08);
    --footer-bg: #071233;
    --footer-text: #cbd5e1;
    --card-bg: #ffffff;
    --border-color: rgba(15,82,186,0.1);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
}

/* Typography */
h1, h2, h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
    line-height: 1.2;
}

h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin: 0 0 0.75rem;
}

h3 {
    font-size: 1rem;
    font-weight: 500;
    margin: 0 0 1.25rem;
    color: var(--text);
}

p {
    margin: 0 0 1rem;
}

/* Navigation Styles */
nav {
    background: var(--primary);
    padding: 0;
    text-align: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

nav a {
    color: white;
    padding: 16px 24px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    letter-spacing: 0.3px;
    transition: background 0.2s ease;
}

nav a:hover,
nav a.active {
    background: rgba(255,255,255,0.12);
}

/* Header / Hero Styles */
header {
    position: relative;
    height: calc(100vh - 52px);
    min-height: 550px;
    background: url('https://riceowls.com/images/2024/10/8/smu241007005_tfi_S0c9Z.JPG') center/cover no-repeat;
    margin-top: 52px;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: white;
    text-align: center;
    padding: 20px;
}

.hero-label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0.8;
    margin-bottom: 1.25rem;
}

header h1 {
    font-size: clamp(3rem, 10vw, 6rem);
    margin: 0;
    font-weight: 600;
    letter-spacing: -1px;
    text-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin: 1rem 0 2.5rem;
    opacity: 0.85;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.hero-cta {
    display: inline-block;
    padding: 14px 36px;
    background: transparent;
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 2px;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
}

.hero-cta:hover {
    background: white;
    color: var(--text);
    border-color: white;
}

/* Section Styles */
section {
    padding: 70px 20px;
    max-width: 1100px;
    margin: auto;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    margin: 0;
}

/* About Section */
#about {
    background: white;
}

.bio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.bio-image-wrapper {
    position: relative;
}

.bio-image {
    width: 100%;
    border-radius: 4px;
}

.bio-content {
    padding-top: 0;
}

.bio-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.bio-detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-label {
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--muted-text);
}

.detail-value {
    font-size: 1rem;
    color: var(--text);
}

.bio-text p {
    font-size: 1.1rem;
    line-height: 1.85;
    color: var(--muted-text);
}

.bio-text p:last-child {
    margin-bottom: 0;
}

/* Profile Links */
.profile-links {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.profile-links a {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.profile-links a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.link-separator {
    color: var(--muted-text);
    opacity: 0.4;
    margin: 0 12px;
}

/* Achievements Section */
#achievements {
    background: var(--muted-bg);
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.achievement-card {
    background: var(--card-bg);
    border-radius: 4px;
    padding: 36px;
    border: 1px solid var(--border-color);
}

.achievement-card-wide {
    grid-column: 1 / -1;
}

.achievement-card h3 {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--muted-text);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.achievement-card ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.achievement-card li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 1rem;
    color: var(--text);
    line-height: 1.6;
}

.achievement-card li:first-child {
    padding-top: 0;
}

.achievement-card li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.achievement-summary {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--muted-text);
    margin: 0;
}

/* Social Section */
#social {
    background: white;
    text-align: center;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto 36px;
    align-items: start;
}

.social-grid .instagram-media {
    width: 100% !important;
    min-width: auto !important;
    margin: 0 !important;
    border-radius: 4px !important;
    box-shadow: none !important;
    border: 1px solid var(--border-color) !important;
    min-height: 400px !important;
    max-height: 455px !important;
    overflow: hidden !important;
    display: block !important;
    position: relative !important;
}

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

.follow-btn {
    display: inline-block;
    background: transparent;
    color: var(--primary);
    padding: 14px 36px;
    border: 1px solid var(--primary);
    border-radius: 2px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
}

.follow-btn:hover {
    background: var(--primary);
    color: white;
}

/* Legacy Social Styles */
.social-grid-fallback.hidden {
    display: none;
}

.insta-post {
    display: block;
    text-decoration: none;
    color: var(--text);
}

.insta-post-image {
    position: relative;
    width: 100%;
    padding-top: 100%;
    overflow: hidden;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    background: #f0f0f0;
}

.insta-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.insta-overlay {
    display: none;
}

.insta-caption {
    margin-top: 12px;
    font-size: 0.85rem;
    color: var(--muted-text);
}

/* Footer with Contact */
footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    text-align: center;
    padding: 50px 20px 30px;
}

.footer-inner {
    max-width: 800px;
    margin: 0 auto;
}

.footer-contact {
    margin-bottom: 30px;
}

.footer-contact h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    margin: 0 0 8px;
}

.footer-contact > p {
    font-size: 0.9rem;
    color: var(--footer-text);
    margin: 0 0 20px;
    opacity: 0.7;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-size: 0.95rem;
    transition: opacity 0.2s ease;
}

.footer-links a:hover {
    opacity: 0.7;
}

.footer-separator {
    color: var(--footer-text);
    opacity: 0.3;
    margin: 0 8px;
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
    margin: 0;
    font-size: 0.8rem;
    opacity: 0.5;
}

.footer-credit {
    margin-top: 8px !important;
    font-size: 0.7rem !important;
    opacity: 0.35 !important;
}

.footer-credit a {
    color: var(--footer-text);
    text-decoration: none;
}

.footer-credit a:hover {
    text-decoration: underline;
}

/* Responsive Styles - Tablet */
@media (max-width: 968px) {
    .bio-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .bio-image-wrapper {
        max-width: 500px;
        margin: 0 auto;
    }

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

@media (max-width: 768px) {
    header {
        min-height: 450px;
        height: 70vh;
    }

    .nav-inner {
        flex-wrap: wrap;
        gap: 0;
    }

    nav a {
        padding: 12px 16px;
        font-size: 0.825rem;
    }

    section {
        padding: 50px 20px;
    }

    .section-header {
        margin-bottom: 30px;
    }

    .bio-details {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .bio-text p {
        font-size: 1rem;
    }

    .profile-links {
        text-align: center;
    }

    .social-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .achievement-card {
        padding: 28px;
    }
}

@media (max-width: 480px) {
    header {
        min-height: 380px;
        height: 60vh;
    }

    .hero-cta {
        padding: 12px 28px;
        font-size: 0.825rem;
    }

    nav a {
        padding: 10px 12px;
        font-size: 0.8rem;
    }

    section {
        padding: 40px 15px;
    }

    .social-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .follow-btn {
        padding: 12px 28px;
        font-size: 0.85rem;
    }

    .profile-links a {
        display: block;
        margin: 8px 0;
    }

    .link-separator {
        display: none;
    }

    footer {
        padding: 40px 15px 24px;
    }

    .footer-links {
        flex-direction: column;
        gap: 12px;
    }

    .footer-separator {
        display: none;
    }
}
