* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #93c5fd 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

/* Family Values Floating Around Page */
.family-values {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
}

.value-card {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    animation: float 6s ease-in-out infinite;
    transition: all 0.3s ease;
}

.value-card:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.value-icon {
    font-size: 2em;
}

.value-text {
    font-size: 0.85em;
    font-weight: 600;
    color: white;
    text-align: center;
    white-space: nowrap;
}

/* Position each value card - spread across entire viewport */
.value-1 {
    top: 5%;
    left: 5%;
    animation: float1 30s ease-in-out infinite;
}

.value-2 {
    top: 8%;
    left: 80%;
    animation: float2 35s ease-in-out infinite;
}

.value-3 {
    top: 35%;
    left: 3%;
    animation: float3 32s ease-in-out infinite;
}

.value-4 {
    top: 40%;
    left: 85%;
    animation: float4 38s ease-in-out infinite;
}

.value-5 {
    top: 70%;
    left: 6%;
    animation: float5 34s ease-in-out infinite;
}

.value-6 {
    top: 75%;
    left: 82%;
    animation: float6 36s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(150px, 200px);
    }
    50% {
        transform: translate(50px, 400px);
    }
    75% {
        transform: translate(100px, 250px);
    }
}

@keyframes float2 {
    0%, 100% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(-100px, 250px);
    }
    50% {
        transform: translate(80px, 450px);
    }
    75% {
        transform: translate(-150px, 150px);
    }
}

@keyframes float3 {
    0%, 100% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(200px, -100px);
    }
    50% {
        transform: translate(100px, 200px);
    }
    75% {
        transform: translate(250px, 50px);
    }
}

@keyframes float4 {
    0%, 100% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(-200px, 150px);
    }
    50% {
        transform: translate(100px, -150px);
    }
    75% {
        transform: translate(-250px, 300px);
    }
}

@keyframes float5 {
    0%, 100% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(180px, -200px);
    }
    50% {
        transform: translate(-50px, -400px);
    }
    75% {
        transform: translate(220px, -250px);
    }
}

@keyframes float6 {
    0%, 100% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(-180px, -150px);
    }
    50% {
        transform: translate(120px, -300px);
    }
    75% {
        transform: translate(-220px, -200px);
    }
}

/* Main Container */
.container {
    position: relative;
    z-index: 10;
    flex: 1;
    display: flex;
    flex-direction: column;
}

header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    padding: 48px 30px;
    text-align: center;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.header-content h1 {
    font-size: 4em;
    font-weight: 900;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #60a5fa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
}

.subtitle {
    font-size: 1.4em;
    color: #64748b;
    font-weight: 500;
    letter-spacing: 0.01em;
}

main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 40px;
}

/* Modern Grid Layout for Profiles */
.profiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 24px;
    width: 100%;
    max-width: 1000px;
}

.profile-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 48px 32px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 3px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    opacity: 0;
    transition: opacity 0.3s;
}

.profile-card:hover::before {
    opacity: 1;
}

.profile-emoji {
    font-size: 4em;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.profile-card:hover .profile-emoji {
    transform: scale(1.2) rotate(5deg);
}

.profile-name {
    font-size: 1.8em;
    font-weight: 700;
    color: #1e293b;
    transition: color 0.3s;
}

.profile-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
}

/* Individual Profile Colors */
.profile-ian::before {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.profile-ian:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
}

.profile-edward::before {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.profile-edward:hover {
    background: linear-gradient(135deg, rgba(240, 147, 251, 0.1) 0%, rgba(245, 87, 108, 0.1) 100%);
}

.profile-amanda::before {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.profile-amanda:hover {
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.1) 0%, rgba(0, 242, 254, 0.1) 100%);
}

.profile-eleanor::before {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.profile-eleanor:hover {
    background: linear-gradient(135deg, rgba(67, 233, 123, 0.1) 0%, rgba(56, 249, 215, 0.1) 100%);
}

.profile-ellis::before {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.profile-ellis:hover {
    background: linear-gradient(135deg, rgba(250, 112, 154, 0.1) 0%, rgba(254, 225, 64, 0.1) 100%);
}

/* Legacy button styles for sub-pages */
.button-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 600px;
}

.nav-button {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 30px 40px;
    font-size: 2em;
    font-weight: 700;
    text-decoration: none;
    color: #ffffff;
    border-radius: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.nav-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.nav-button:hover::before {
    left: 100%;
}

.nav-button .emoji {
    font-size: 1.3em;
}

.nav-button .name {
    flex: 1;
}

.nav-button:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-ian {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.btn-edward {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.btn-amanda {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.btn-eleanor {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.btn-ellis {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.page-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 48px;
    border-radius: 24px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.page-title {
    font-size: 3em;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.page-description {
    font-size: 1.3em;
    color: #6b7280;
    margin-bottom: 40px;
    line-height: 1.6;
    font-weight: 500;
}

.back-button {
    display: inline-block;
    padding: 16px 32px;
    font-size: 1.1em;
    font-weight: 600;
    text-decoration: none;
    color: #ffffff;
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 30px;
}

.back-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.personal-link {
    position: fixed;
    bottom: 20px;
    right: 20px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    opacity: 0.3;
    transition: all 0.3s;
    background: rgba(0, 0, 0, 0.1);
    padding: 8px 14px;
    border-radius: 8px;
    backdrop-filter: blur(5px);
    z-index: 1000;
}

.personal-link:hover {
    opacity: 0.8;
    color: rgba(255, 255, 255, 0.8);
    background: rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content h1 {
        font-size: 2.5em;
    }

    .subtitle {
        font-size: 1.1em;
    }

    .profiles-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 16px;
    }

    .profile-card {
        padding: 36px 24px;
    }

    .profile-emoji {
        font-size: 3em;
    }

    .profile-name {
        font-size: 1.4em;
    }

    .value-card {
        padding: 12px 16px;
    }

    .value-icon {
        font-size: 1.5em;
    }

    .value-text {
        font-size: 0.7em;
    }

    /* Reposition values for mobile */
    .value-1 {
        top: 8%;
        left: 2%;
    }

    .value-2 {
        top: 8%;
        right: 2%;
    }

    .value-3 {
        top: 35%;
        left: 1%;
    }

    .value-4 {
        top: 35%;
        right: 1%;
    }

    .value-5 {
        bottom: 12%;
        left: 2%;
    }

    .value-6 {
        bottom: 12%;
        right: 2%;
    }

    main {
        padding: 40px 20px;
    }

    .nav-button {
        font-size: 1.6em;
        padding: 25px 30px;
        gap: 15px;
    }

    .page-content {
        padding: 30px;
    }

    .page-title {
        font-size: 2em;
    }
}
